Models API
List and explore available AI models.
Endpoints
GET
/v1/modelsList all modelsGET
/v1/models/{id}Get model detailsList Models
Retrieve a list of all available models with pagination support.
GET
/v1/modelsQuery Parameters
| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category (text-to-image, text-to-video, etc.) |
| search | string | Search by name or description |
| limit | integer | Number of results (default: 20, max: 100) |
| offset | integer | Pagination offset |
Example Request
curl "https://api.abstrakt.one/v1/models?category=text-to-image&limit=10" \
-H "Authorization: Bearer YOUR_API_KEY"Response
{
"models": [
{
"id": "fal-ai/flux/schnell",
"name": "FLUX Schnell",
"description": "Fast, high-quality image generation",
"category": "text-to-image",
"provider": "fal-ai",
"status": "active",
"pricing": {
"credits_per_run": 1
}
},
{
"id": "fal-ai/flux/dev",
"name": "FLUX Dev",
"description": "Highest quality image generation",
"category": "text-to-image",
"provider": "fal-ai",
"status": "active",
"pricing": {
"credits_per_run": 2
}
}
],
"total": 45,
"limit": 10,
"offset": 0
}Get Model Details
Retrieve detailed information about a specific model, including its input schema.
GET
/v1/models/{id}Example Request
curl "https://api.abstrakt.one/v1/models/fal-ai/flux/schnell" \
-H "Authorization: Bearer YOUR_API_KEY"Response
{
"id": "fal-ai/flux/schnell",
"name": "FLUX Schnell",
"description": "Fast, high-quality image generation model",
"category": "text-to-image",
"provider": "fal-ai",
"status": "active",
"pricing": {
"credits_per_run": 1
},
"input_schema": {
"type": "object",
"properties": {
"prompt": {
"type": "string",
"description": "Text description of the image to generate"
},
"image_size": {
"type": "string",
"enum": ["square", "square_hd", "portrait_4_3", "landscape_16_9"],
"default": "square_hd"
},
"num_images": {
"type": "integer",
"minimum": 1,
"maximum": 4,
"default": 1
}
},
"required": ["prompt"]
}
}Model Categories
| Category | Description | Examples |
|---|---|---|
| text-to-image | Generate images from text | FLUX, SDXL, Ideogram |
| text-to-video | Generate videos from text | MiniMax, Kling, Hunyuan |
| image-to-image | Transform images | Upscalers, Style Transfer |
| text-to-speech | Generate speech from text | PlayHT, F5 TTS |
| audio-generation | Generate music and sounds | Music generators |