Get Started
Endpoint Examples
- GETModels
- GETModels (Old)
- POSTChat Completion
- POSTCompletions
- POSTImage Generation
- POSTImage Generation (OpenAI-Compatible)
- POSTSpeech-to-Text Transcription
- POSTSpeech-to-Text Status
- POSTYouTube Transcription
- POSTWeb Scraping
- POSTText-to-Speech
- GETTEE Attestation
- GETTEE Signature
- POSTRetrieve Midjourney Generation Status
- POSTVideo Generation
- GETVideo Status
- POSTTalk to GPT (Legacy)
- POSTCheck Balance
- POSTReceive Nano
- Crypto Deposits
API Reference
Miscellaneous
Endpoint Examples
Image Generation
Generates an image from a text prompt
POST
/
generate-image
Copy
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
}'
Copy
{
"image": "<string>",
"cost": 123,
"inputTokens": 123,
"outputTokens": 123
}
Authorizations
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
.
Copy
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
}'
Copy
{
"image": "<string>",
"cost": 123,
"inputTokens": 123,
"outputTokens": 123
}
Assistant
Responses are generated using AI and may contain mistakes.