openapi: 3.0.3 info: title: 'CloudCompute.ru Compute API' description: 'CloudCompute REST API for GPU offers, instances, and SSH keys.' version: 1.0.0 servers: - url: 'https://app.cloudcompute.ru/api/v1' tags: - name: Endpoints description: '' components: securitySchemes: default: type: http scheme: bearer description: 'Create a key at /api-access in the dashboard. The raw token is shown once at creation.' security: - default: [] paths: /api/v1/chat/completions: post: summary: '' operationId: postApiV1ChatCompletions description: '' parameters: [] responses: { } tags: - Endpoints /api/v1/models: get: summary: '' operationId: getApiV1Models description: '' parameters: [] responses: 401: description: '' content: application/json: schema: type: object example: error: message: 'Invalid API key.' type: invalid_request_error code: 401 properties: error: type: object properties: message: type: string example: 'Invalid API key.' type: type: string example: invalid_request_error code: type: integer example: 401 tags: - Endpoints /api/v1/offers: get: summary: '' operationId: getApiV1Offers description: '' parameters: [] responses: 401: description: '' content: application/json: schema: type: object example: error: message: 'Invalid API key.' code: invalid_api_key properties: error: type: object properties: message: type: string example: 'Invalid API key.' code: type: string example: invalid_api_key tags: - Endpoints /api/v1/instances: get: summary: '' operationId: getApiV1Instances description: '' parameters: [] responses: 401: description: '' content: application/json: schema: type: object example: error: message: 'Invalid API key.' code: invalid_api_key properties: error: type: object properties: message: type: string example: 'Invalid API key.' code: type: string example: invalid_api_key tags: - Endpoints post: summary: '' operationId: postApiV1Instances description: '' parameters: [] responses: { } tags: - Endpoints requestBody: required: true content: application/json: schema: type: object properties: type: type: integer description: '' example: 16 ask_id: type: integer description: '' example: 16 nullable: true name: type: string description: validation.max. example: 'n' nullable: true stats: type: string description: '' example: architecto nullable: true template_image: type: string description: 'Must match the regex /^$|^([a-z0-9][a-z0-9._\/-]*)(?::[@a-zA-Z0-9][@a-zA-Z0-9._-]*|@sha256:[a-fA-F0-9]{64})?$/u. validation.max.' example: 'n' nullable: true template_id: type: integer description: '' example: 16 nullable: true template_hash_id: type: string description: validation.max. example: 'n' nullable: true runtype: type: string description: '' example: architecto nullable: true disk_gb: type: integer description: 'validation.min validation.max.' example: 22 nullable: true offer_disk_space: type: number description: 'validation.min validation.max.' example: 7 nullable: true install_monitoring: type: boolean description: '' example: false nullable: true ssh_key_ids: type: array description: 'Must match an existing stored value.' example: - 16 items: type: integer required: - type '/api/v1/instances/{instanceId}': get: summary: '' operationId: getApiV1InstancesInstanceId description: '' parameters: [] responses: 401: description: '' content: application/json: schema: type: object example: error: message: 'Invalid API key.' code: invalid_api_key properties: error: type: object properties: message: type: string example: 'Invalid API key.' code: type: string example: invalid_api_key tags: - Endpoints patch: summary: '' operationId: patchApiV1InstancesInstanceId description: '' parameters: [] responses: { } tags: - Endpoints requestBody: required: false content: application/json: schema: type: object properties: label: type: string description: validation.max. example: b nullable: true name: type: string description: validation.max. example: 'n' nullable: true delete: summary: '' operationId: deleteApiV1InstancesInstanceId description: '' parameters: [] responses: { } tags: - Endpoints parameters: - in: path name: instanceId description: '' example: '564' required: true schema: type: string /api/v1/ssh-keys: get: summary: '' operationId: getApiV1SshKeys description: '' parameters: [] responses: 401: description: '' content: application/json: schema: type: object example: error: message: 'Invalid API key.' code: invalid_api_key properties: error: type: object properties: message: type: string example: 'Invalid API key.' code: type: string example: invalid_api_key tags: - Endpoints post: summary: '' operationId: postApiV1SshKeys description: '' parameters: [] responses: { } tags: - Endpoints requestBody: required: true content: application/json: schema: type: object properties: public_key: type: string description: '' example: architecto name: type: string description: '' example: architecto required: - public_key - name '/api/v1/ssh-keys/{sshKeyId}': delete: summary: '' operationId: deleteApiV1SshKeysSshKeyId description: '' parameters: [] responses: { } tags: - Endpoints parameters: - in: path name: sshKeyId description: '' example: '564' required: true schema: type: string