Images

Endpoints

Images ​

POST https://relumen.ai/v1/images/generations

Generate an image with a model available to your key's group. Image models use the Images endpoint rather than Chat Completions.

Headers ​

HeaderRequiredValue
AuthorizationYesBearer YOUR_API_KEY
Content-TypeYesapplication/json

Body ​

ParameterTypeRequiredDescription
modelstringYesExact image-model call name from Model Plaza.
promptstringYesDescribe the image to generate.
sizestringModel-dependentImage dimensions supported by the selected model.
nintegerModel-dependentNumber of images to generate.
response_formatstringModel-dependentOutput format, such as b64_json, when supported.

Parameter support varies by image model. The example follows the image-generation format in the source guide; check the model's current options before changing size, count, or output format.

Example request ​

Replace both placeholders. Select a model that supports the parameters shown.

bash
curl https://relumen.ai/v1/images/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_MODEL_ID",
    "prompt": "An orange cat beside a window in a cyberpunk city",
    "size": "1024x1024",
    "n": 1,
    "response_format": "b64_json"
  }'

Connect an image client ​

Select an Images or Image Generation client type and set the base URL to https://relumen.ai/v1. Use a supported image model, including a supported Grok image model when available to your group.

Channel monitoring may test text requests only. Confirm image availability with the Images endpoint itself. See Errors & troubleshooting if the call fails.

Need help? Visit the Help Center →Open console ↗