API Reference
Zekron AI
A simple REST API to generate photorealistic images from text prompts. Transparent per-image pricing with Telegram-native payments.
Authentication
All requests require an API key in the Authorization header as a Bearer token. Get your key via the Telegram Bot.
API key format
zk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxAuthorization: Bearer zk_your_api_key_here
Security: Never expose your API key in client-side code or public repos.
Quick start
Generate your first image in under a minute.
curl -X POST https://api.zekron.codes/api/v1/zekron-image-1:image-preview \
-H "Authorization: Bearer zk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A futuristic city at night",
"options": { "size": "1024x1024" }
}'
API reference
POST/api/v1/zekron-image-1:image-preview
Generate an image from a text prompt. Balance is deducted based on model and prompt length.
Parameters
Text description of the image.
Model ID. Defaults to zekron-image-1.
1024x1024 (default), 512x512, 256x256.
options.negative_prompt
string
Elements to exclude from the image.
Request body
{
"prompt": "A futuristic city at night, neon lights, 8k",
"model": "zekron-image-1:image-preview",
"options": {
"size": "1024x1024",
"negative_prompt": "blurry, low quality"
}
}
Response
{
"success": true,
"data": {
"id": "img_abc123xyz",
"url": "https://api.zekron.codes/storage/img_abc123.png",
"model": "zekron-image-1:image-preview",
"cost": 0.026,
"created_at": "2026-01-01T12:00:00Z"
}
}
Models
Choose from multiple models based on quality and budget.
Zekron Image v0.1.1
zekron-image-1:image-previewFlagship photorealistic model.
GA
2048x2048
$0.025–$0.028
Zekron XL
zekron-xlBalanced speed and quality.
Preview
1024x1024
$0.02–$0.025
Zekron Flash
zekron-flashFast, high-throughput.
Beta
1024x1024
$0.015–$0.02
Zekron Art
zekron-artArtistic stylized outputs.
Preview
1024x1024
$0.02–$0.025
Pricing
Pay per image. No monthly fees. Price depends on model and prompt length.
Zekron Image v0.1.1
$0.025
$0.028
New accounts receive $5.00 bonus credit with their first deposit of $30 or more.
Rate limits
Rate limits are per API key. Exceeding returns 429 with a Retry-After header.
Requests per minute60
Window60 seconds
ScopePer API key
Errors
All errors return a JSON body with an error object.
{
"error": {
"type": "unauthorized",
"message": "Invalid API key",
"suggestion": "Check your API key."
}
}
400
bad_requestInvalid request body
401
unauthorizedInvalid or missing API key
402
payment_requiredInsufficient balance
404
not_foundEndpoint not found
429
rate_limit_exceededToo many requests (60/min)
500
server_errorInternal server error
Payments
Top up via the Telegram Bot. Two methods are supported:
Telegram Stars
Pay with Telegram Stars inside the bot. Instant, no fees.
Instant · No feesUSDT on TON
Send USDT on TON blockchain. 2% fee, 30-minute window.
2% fee · 30 min