Images

Create Image

This endpoint is compatible with the OpenAI library.<br/>Creates an image given a prompt.

post/v1/images/generations

Request

  • Base URL: https://api.fanar.qa (the document declares no server; this is the origin it was published from)
  • URL: https://api.fanar.qa/v1/images/generations
  • Auth: HTTP bearer

Request body

model'Fanar-Oryx-IG-2' required
promptstring required

A text description of the desired image.

reviseboolean

Whether to automatically revise the prompt to enhance style, quality, and cultural alignment for improved generation results.

Example request

{
  "model": "Fanar-Oryx-IG-2",
  "prompt": "A futuristic cityscape at sunset"
}

Response

Successful Response

idstring required

A unique identifier for the image generation.

createdinteger required

The timestamp of when the image was created.

Changes

No recorded changes to this operation across all 1 revision of this API.