Products
Images
Generate images from a text prompt.
POST /v1/images/generations (also available as POST /v1/images) creates n images (1–4) from a prompt of up to 4,000 characters. size is one of 256x256, 512x512, 768x768, 1024x1024 (default), 1024x1792 or 1792x1024. Scope: images. You pay per image.
curl https://api.relaypoints.online/v1/images/generations \
-H "Authorization: Bearer $RELAYPOINT_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "rp/image", "prompt": "Modern kitchen, morning light, photo", "size": "1024x1024", "n": 1 }'{
"created": 1793232000,
"model": "rp/image",
"data": [
{ "url": "https://…", "file_id": "file_…", "expires_at": 1795824000 }
],
"usage": { "images": 1, "cost_usd": "0.040000" }
}Getting the files
- By default each image is stored privately and returned as
url, a signed link valid for 1 hour. Download it and store it yourself; the file itself is deleted after 30 days (expires_at). - With
"response_format": "b64_json"the image comes back inline as base64 and nothing is stored.