POST
/
generate-image
curl --request POST \
  --url https://nano-gpt.com/api/generate-image \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "prompt": "RAW photo, a portrait photo of a latina woman in casual clothes, natural skin, 8k uhd, high quality, film grain, Fujifilm XT3",
  "model": "recraft-v3",
  "width": 1024,
  "height": 1024,
  "negative_prompt": "<string>",
  "nImages": 1,
  "num_steps": 10,
  "resolution": "1024x1024",
  "sampler_name": "<string>",
  "scale": 7.5
}'
{
  "image": "<string>",
  "cost": 123,
  "inputTokens": 123,
  "outputTokens": 123
}

Authorizations

x-api-key
string
header
required

Body

application/json

Parameters for image generation

The body is of type object.

Response

200
application/json

Image generation response

The response is of type object.