Nexus

API reference

All endpoints are relative to https://nexus.promptscenes.in/api/v1 and return JSON. Every response includes an X-Request-Id header. Quote it when contacting support.

MethodPathScopeDescription
GET/modelsmodels:readList available models with pricing
GET/models/{slug}models:readModel details including its input JSON Schema
POST/taskstasks:writeCreate an asynchronous generation task
GET/taskstasks:readList your recent tasks (cursor pagination)
GET/tasks/{id}tasks:readRetrieve a task's status, output and charge
POST/tasks/{id}/canceltasks:writeCancel a queued task
POST/chat/completionschatOpenAI-compatible chat completion (non-streaming)
GET/accountanyCurrent credit balance and reserved amount

Create a task

POST /v1/tasks
{
  "model": "model-slug",          // required
  "input": { ... },               // validated against the model's input_schema
  "callback_url": "https://..."   // optional, receives a signed webhook
}

Returns 202 Accepted:

{
  "id": "6f1c…",
  "object": "task",
  "model": "model-slug",
  "status": "queued",
  "estimated_cost": "12.5",
  "reserved": "12.5",
  "created_at": "2026-01-01T12:00:00Z"
}

Task object

FieldDescription
statusqueued → submitted → running → succeeded | failed | cancelled
outputModel output. Files appear as { url, mime, size } with expiring signed URLs.
error{ code, message } when status is failed
estimated_costCredits reserved at submission (string decimal)
chargedCredits actually charged once settled (string decimal)

Amounts are decimal strings to avoid floating-point rounding.