Skip to main content
Instances are the main Compute resource exposed by the public API. You can list and inspect existing instances, read recent logs, and start, stop, or terminate them.
The current public API does not create instances. Create new instances in the Compute console, then use the API to inspect or manage them.

Instance lifecycle

Common lifecycle states include: Start, stop, and terminate actions are asynchronous. Poll GET /instances/{id} until the instance reaches the expected state.

List instances

Use GET /instances:
The response includes a data array and pagination metadata.

Filter instances

Supported filters include:
  • status
  • gpu_type
  • region
  • date_range_begin
  • date_range_end
  • free_text_search
  • supported sort fields and direction
Use one of the accepted region values: UAE, FR, or US. For exact allowed values and limits, use the GET /instances reference.

Get one instance

Use GET /instances/{id} to read the current state of a specific instance.

Start an instance

Use POST /instances/{id}/start to start a stopped instance.
The start endpoint can return 409 Conflict with error code CONFLICT if the instance is terminating or terminated, or if the account does not have enough credit to start it. Check the latest instance state first. If the instance state allows starting, check the account balance before retrying. If no host currently has enough capacity for the instance’s preset, start can return 503 Service Unavailable. Retry with backoff or choose a preset in another region.

Stop an instance

Use POST /instances/{id}/stop to stop a running instance without terminating it.
Poll the instance until it reaches STOPPED. The stop endpoint returns 409 Conflict with code CONFLICT if the instance is terminating or already terminated.

Terminate an instance

Use POST /instances/{id}/terminate to permanently terminate an instance.
Termination is irreversible. A terminated instance can’t be restarted, and its data is deleted.
The terminate endpoint returns 409 Conflict with code CONFLICT only when the instance is already TERMINATED. If it is STOPPING or TERMINATING, the request is accepted; poll the instance state instead of retrying blindly.

Get instance logs

Use GET /instances/{id}/logs to fetch recent container output.
Logs are returned newest first. entries[0] is the most recent line. A shortened response looks like this:

Suggested workflow

1

List your instances

Call GET /instances and find the instance you want to manage.
2

Check its current state

Call GET /instances/{id} before sending a lifecycle action.
3

Run the action

Start, stop, or terminate the instance.
4

Poll for the final state

Call GET /instances/{id} until the instance reaches the expected state.

Next step

Continue with Use pagination and filters.