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.
| Method | Path | Scope | Description |
|---|---|---|---|
| GET | /models | models:read | List available models with pricing |
| GET | /models/{slug} | models:read | Model details including its input JSON Schema |
| POST | /tasks | tasks:write | Create an asynchronous generation task |
| GET | /tasks | tasks:read | List your recent tasks (cursor pagination) |
| GET | /tasks/{id} | tasks:read | Retrieve a task's status, output and charge |
| POST | /tasks/{id}/cancel | tasks:write | Cancel a queued task |
| POST | /chat/completions | chat | OpenAI-compatible chat completion (non-streaming) |
| GET | /account | any | Current 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
| Field | Description |
|---|---|
status | queued → submitted → running → succeeded | failed | cancelled |
output | Model output. Files appear as { url, mime, size } with expiring signed URLs. |
error | { code, message } when status is failed |
estimated_cost | Credits reserved at submission (string decimal) |
charged | Credits actually charged once settled (string decimal) |
Amounts are decimal strings to avoid floating-point rounding.