image-landscapeImage Generation

AlphaNeural supports OpenAI-compatible image generation for GPT-style image models (and any provider-backed image model you expose through the OpenAI Images interface). The API shape matches OpenAI’s

Create an image

POST /v1/images/generations

You can also find an Azure-style compatibility route in the proxy (/openai/deployments/{model}/images/generations). This docs page focuses on /v1/images/generations.

Request body

AlphaNeural follows the OpenAI Images API request shape. The most commonly used fields are:

  • model (string). Image model ID to use.

  • prompt (string). Text description of the image you want.

  • n (integer). Number of images to generate.

  • size (string). Output dimensions (supported values depend on the model).

  • quality (string). Quality level (supported values depend on the model).

  • style (string). Style hint (primarily for DALL·E models).

  • response_format (string). url or b64_json for DALL·E models. Note. GPT image models always return base64 and do not support response_format.

  • user (string). End-user identifier for abuse monitoring.

circle-exclamation
circle-info

Model availability varies by workspace, teams and provider. Use GET /v1/models to discover image-capable models exposed by your AlphaNeural key.

Examples

cURL

Python (OpenAI SDK)

Response

The response matches the OpenAI Images API. You will receive a data array with one item per generated image. Depending on the model, each item contains either:

  • b64_json (base64-encoded image), or

  • url (a temporary URL)

If you receive URLs, they are time-limited. OpenAI’s reference behaviour is that URLs expire after about 60 minutes. OpenAI Platformarrow-up-right

Example (truncated):

Decode b64_json

Last updated