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,
"imageDataUrl": "data:image/jpeg;base64,/9j/4AAQ...",
"kontext_max_mode": false
}'
{
"image": "<string>",
"cost": 123,
"inputTokens": 123,
"outputTokens": 123
}
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,
"imageDataUrl": "data:image/jpeg;base64,/9j/4AAQ...",
"kontext_max_mode": false
}'
{
"image": "<string>",
"cost": 123,
"inputTokens": 123,
"outputTokens": 123
}
Parameters for image generation
The body is of type object
.
Image generation response
The response is of type object
.