Skip to content

Get AI Generation Schema

FreshGET
GET https://api.creatify.ai/api/ai_generation/schema/

Retrieve the available AI generation models and their input schemas. Use this to understand what parameters each model accepts.

Headers

HeaderTypeRequiredDescription
X-API-IDstringYesYour Creatify API ID
X-API-KEYstringYesYour Creatify API key

Example Request

bash
curl -X GET 'https://api.creatify.ai/api/ai_generation/schema/' \
  -H 'X-API-ID: your-api-id' \
  -H 'X-API-KEY: your-api-key'

Response

json
{
  "models": [
    {
      "id": "image-gen-v1",
      "name": "Image Generation v1",
      "description": "Generate images from text prompts",
      "inputs": {
        "prompt": {
          "type": "string",
          "required": true,
          "description": "Text description of the image to generate"
        },
        "aspect_ratio": {
          "type": "string",
          "required": false,
          "description": "Output aspect ratio",
          "options": ["1:1", "16:9", "9:16"]
        },
        "style": {
          "type": "string",
          "required": false,
          "description": "Visual style preset"
        }
      }
    }
  ]
}

Response Fields

FieldTypeDescription
modelsarrayArray of available model definitions
models[].idstringModel identifier (use in create requests)
models[].namestringHuman-readable model name
models[].descriptionstringModel description
models[].inputsobjectSchema definition for model inputs

Status Codes

CodeDescription
200Success
401Unauthorized -- invalid API credentials
500Internal server error

TIP

Always check the schema endpoint before creating generation tasks. Available models and their parameters may change over time.