logo
MarketplaceCreate rental order
Marketplace

Create rental order

Rent a GPU. Returns SSH credentials upon success.

curl -X POST "https://api.gpuniq.com/v1/marketplace/order" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -d '{
  "agent_id": 123,
  "gpu_required": 42,
  "docker_image": "example_string",
  "pricing_type": "minute"
}'
{
  "data": {
    "task_id": 123,
    "ssh_host": "example_string",
    "ssh_port": 42,
    "ssh_password": "example_string",
    "status": "example_string"
  }
}
POST
/v1/marketplace/order
POST
Security Scheme
Bearer Token (JWT)
Bearer Tokenstring
Required

Bearer token (JWT) - just enter the token, "Bearer" prefix will be added automatically

Content-Typestring
Required

The media type of the request body

Options: application/json
agent_idinteger
Required

ID of the GPU to rent

gpu_requiredinteger

Number of GPUs to reserve

docker_imagestring

Docker image to use (optional)

pricing_typestring
Options: minute, hour, day, week, month
Request Preview
Response

Response will appear here after sending the request

Authentication

BearerAuth
header
Authorizationstring
Required

Bearer token (JWT). Authentication token required.

Body

application/json
agent_idinteger
Required

ID of the GPU to rent

gpu_requiredinteger

Number of GPUs to reserve

docker_imagestring

Docker image to use (optional)

Responses

dataobject
Was this page helpful?
Built with Documentation.AI

Last updated Jan 9, 2026