Generate, edit, and vary images through the Allternit LLM gateway
Not served on api.allternit.com. This page describes the gateway contract only.
Overview
The Images API provides a wire-compatible surface for image generation, editing, and variations. Requests are authenticated with a virtual key and routed to the configured image provider. When no provider is configured, the gateway returns placeholder SVGs for development and testing.
Base URL
https://api.allternit.com/v1
For local development:
http://127.0.0.1:8013/v1
Endpoints
Method
Path
Description
POST
/v1/images/generations
Generate an image from a prompt
POST
/v1/images/edits
Edit an existing image
POST
/v1/images/variations
Create variations of an image
Authentication
All requests require a virtual key in the Authorization header. See Authentication.
Generate an image
Request body
Field
Type
Required
Description
prompt
string
yes
Text description of the desired image.
model
string
no
Image model id. Defaults to allternit-image-1.
n
integer
no
Number of images to generate. 1–10. Defaults to 1.