Image 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).urlorb64_jsonfor DALL·E models. Note. GPT image models always return base64 and do not supportresponse_format.user(string). End-user identifier for abuse monitoring.
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), orurl(a temporary URL)
If you receive URLs, they are time-limited. OpenAI’s reference behaviour is that URLs expire after about 60 minutes. OpenAI Platform
Example (truncated):
Decode b64_json
Last updated
