Generate Images

Generate images from text prompts

post/images/generations

Request

  • Base URL
    https://api.electronhub.ai/v1
  • URL
    https://api.electronhub.ai/v1/images/generations
  • Auth
    HTTP bearer

Request body

modelstring required
promptstring required

Text description of the desired image

ninteger

Number of images to generate

quality'standard' | 'hd'
size'256x256' | '512x512' | '1024x1024' | '1792x1024' | '1024x1792'
response_format'url' | 'b64_json'
publicboolean

Whether to make the image publicly accessible

Example request

{
  "model": "dall-e-3"
}

Response

Success

createdinteger required

Changes

No recorded changes to this operation across all 2 revisions of this API.