Image playground

Generate or edit an image (Image Playground).

One-shot, programmatic generation. A text-to-image call is just {prompt}; add image_ids to edit / compose from existing images. Always generates (no clarifying step). Returns a job_id — poll /jobs/<id>/status and fetch /jobs/<id>/results. Pass conversation_id to continue a prior conversation.

POST
/edit-chat

Authorization

token_auth
AuthorizationBearer <token>

Token-based authentication using access tokens.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://v2.api.piktid.com/edit-chat" \  -H "Content-Type: application/json" \  -d '{    "prompt": "string"  }'
{
  "job_id": "string",
  "conversation_id": "string",
  "status": "string"
}
{
  "error": "Invalid request",
  "detail": [
    {
      "field": null,
      "message": "string",
      "position": "query"
    }
  ]
}
Empty
Empty
Empty
Empty