curl --request POST \
--url https://nano-gpt.com/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "hidream",
"prompt": "<string>",
"n": 1,
"size": "256x256",
"response_format": "url",
"user": "<string>",
"imageDataUrl": "data:image/jpeg;base64,/9j/4AAQ...",
"imageDataUrls": [
"data:image/jpeg;base64,/9j/4AAQ...",
"data:image/png;base64,iVBORw0KGgo..."
],
"maskDataUrl": "data:image/png;base64,iVBORw0KGgo...",
"strength": 0.8,
"guidance_scale": 7.5,
"num_inference_steps": 30,
"seed": 42,
"kontext_max_mode": false
}'
{
"created": 123,
"data": [
{
"url": "<string>",
"b64_json": "<string>"
}
],
"cost": 123,
"paymentSource": "<string>",
"remainingBalance": 123
}
curl --request POST \
--url https://nano-gpt.com/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "hidream",
"prompt": "<string>",
"n": 1,
"size": "256x256",
"response_format": "url",
"user": "<string>",
"imageDataUrl": "data:image/jpeg;base64,/9j/4AAQ...",
"imageDataUrls": [
"data:image/jpeg;base64,/9j/4AAQ...",
"data:image/png;base64,iVBORw0KGgo..."
],
"maskDataUrl": "data:image/png;base64,iVBORw0KGgo...",
"strength": 0.8,
"guidance_scale": 7.5,
"num_inference_steps": 30,
"seed": 42,
"kontext_max_mode": false
}'
{
"created": 123,
"data": [
{
"url": "<string>",
"b64_json": "<string>"
}
],
"cost": 123,
"paymentSource": "<string>",
"remainingBalance": 123
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Parameters for image generation
The body is of type object
.
Image generation response
The response is of type object
.