PixelDance
V1ImageGenerate

Generate images

Full image generation pipeline: validate → resolve model → check tier → deduct credits → create task → trigger Trigger.dev.

POST
/v1/image/generate

Full image generation pipeline: validate → resolve model → check tier → deduct credits → create task → trigger Trigger.dev.

Authorization

cookieAuth
better-auth.session_token<token>

Session cookie set by Better Auth. Login via the app to obtain.

In: cookie

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "http://localhost:3002/v1/image/generate" \  -H "Content-Type: application/json" \  -d '{    "modelId": "string",    "input": {      "prompt": "string",      "aspectRatio": "string",      "property1": null,      "property2": null    }  }'
{
  "success": true,
  "runId": "string",
  "taskId": "string",
  "projectId": "string",
  "error": "string"
}