Skip to content
INRENT
API

API overview

Base URL, endpoints, request format, headers and conventions.

Base URL

https://api.inrent.ai/v1

Endpoints

MethodPathDescription
POST/chat/completionsChat completions, with streaming, tools and structured output
POST/completionsLegacy text completions (served through chat)
POST/responsesResponses API subset (text/message input, non-streaming)
POST/embeddingsEmbeddings
POST/images/generationsImage generation (models that support it)
GET/modelsList models (no key required)
GET/models/{model}Retrieve a model
GET/keyInspect the calling key
GET/POST/keysManage keys (management permissions)
DELETE/keys/{id}Revoke a key
GET/usageUsage summary
GET/requestsRequest logs
GET/POST/PUT/PATCH/DELETE/compute/…Cloud VPS servers, firewall, snapshots, backups and SSH keys (below)

/audio/transcriptions, /audio/speech, /batches, /rerank, /videos and /agents return 501 endpoint_not_supported until they ship. See the API reference for every parameter.

Cloud VPS

Manage Cloud VPS servers with the same API key and wallet as the AI API. Every endpoint is in the API reference under Cloud VPS.

Give the key Cloud VPS: read (compute:read) or Cloud VPS: manage servers (compute:write) when you create it. Cloud VPS requests act as the person who created the key: see Cloud VPS keys.

Servers belong to the whole workspace, not to the key's project, and are billed hourly to the workspace wallet. A key's spend limit, model allowlist and project budget apply only to AI requests, so a key with a spend limit cannot order servers, resize them or turn on backups (403 key_spend_limit_not_supported). See Billing and limits.

Working with servers

Operations run in the background. Creating a server returns 201 with status: "provisioning", and actions return 202. Poll the server until pending_action is null. One operation runs at a time on each server; a second one returns 409.

A server's provisioning object follows its last build (a new server or a reinstall): stage is queued, preparing_disk, configuring, starting, first_boot or ready, with when each step started, an estimated_seconds_remaining while it runs and failed: true if it stopped at a step. The server is running from first_boot, but log in once stage is ready (setup_pending is then false); the server.ready webhook is sent at that point.

curl https://api.inrent.ai/v1/compute/regions -H "Authorization: Bearer $INRENT_API_KEY"
curl https://api.inrent.ai/v1/compute/images  -H "Authorization: Bearer $INRENT_API_KEY"
curl https://api.inrent.ai/v1/compute/plans   -H "Authorization: Bearer $INRENT_API_KEY"

Use the slugs from GET /compute/regions and GET /compute/plans: a region's available_plans lists what can be ordered there right now. An empty list means there is no capacity in that region at the moment. Creating a server needs at least one day of its price in the wallet.

The root password is returned once, in the response to creating a server and to a reinstall action. Store it then: it cannot be retrieved later. No other secret is returned by the Cloud VPS API.

Cloud VPS requests have their own rate limit, separate from model requests: 120 requests per minute per key (or the key's own requests-per-minute limit) and 300 per workspace.

Model identifiers

Models are addressed as vendor/model, for example openai/gpt-4.1 or qwen/qwen3-32b. The special model inrent/auto lets the router choose. Call GET /models for the live list.

Response headers

HeaderDescription
x-request-idUnique request ID (req_…). Include it when contacting support.
x-inrent-trace-idTrace ID (honours W3C traceparent).
x-inrent-providerProvider that served the request.
x-inrent-modelModel that served the request.
x-inrent-fallbacksNumber of providers tried before success.
x-inrent-billing-modeplatform (INRENT credits) or byok.
x-inrent-cost-inrAmount charged to your balance (non-streaming).
x-ratelimit-*Remaining requests and tokens in the current window.

Response bodies follow the OpenAI format, with an extra top-level provider field.

INRENT extensions

Requests may include an optional inrent object. Other OpenAI-compatible servers ignore it.

{
  "model": "meta/llama-3.3-70b-instruct",
  "messages": [{ "role": "user", "content": "Hi" }],
  "inrent": {
    "route": "lowest_latency",
    "providers": { "order": ["groq"], "ignore": ["fireworks"], "allow_fallbacks": true },
    "fallback_models": ["qwen/qwen3-32b"]
  }
}

See Routing & fallback.

Limits

Request bodies are limited to 20 MB. Unknown top-level fields are dropped before forwarding upstream.

Edit this page