AIMLAPI · JSON Structure

Aimlapi Image Generation Request Structure

Request body for generating an image via AIMLAPI

Type: object Properties: 6
Artificial IntelligenceMachine LearningAI ModelsLLMImage GenerationVideo GenerationSpeechEmbeddingsAPI GatewayDeveloper Tools

ImageGenerationRequest is a JSON Structure definition published by AIMLAPI, describing 6 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

model prompt n size quality style

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aimlapi/refs/heads/main/json-structure/aimlapi-image-generation-request-structure.json",
  "name": "ImageGenerationRequest",
  "description": "Request body for generating an image via AIMLAPI",
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "description": "Image generation model ID",
      "example": "dall-e-3"
    },
    "prompt": {
      "type": "string",
      "description": "Text description of desired image",
      "example": "A futuristic cityscape at sunset"
    },
    "n": {
      "type": "int32",
      "description": "Number of images to generate",
      "example": 1
    },
    "size": {
      "type": "string",
      "description": "Image dimensions",
      "example": "1024x1024"
    },
    "quality": {
      "type": "string",
      "description": "Image quality (standard, hd)",
      "example": "standard"
    },
    "style": {
      "type": "string",
      "description": "Image style (vivid, natural)",
      "example": "vivid"
    }
  }
}