> ## Documentation Index
> Fetch the complete documentation index at: https://docs.samsa.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Bild-Engines auflisten

> Die Text-to-Image-Engines, die du nutzen kannst — Seitenverhältnisse, Auflösungen, Credits und Unterstützung trainierter Modelle pro Engine.

Gibt die Text-to-Image-Engines zurück, die deiner Organisation zur Verfügung
stehen, die Standard-Engine zuerst. Jeder Eintrag listet seine `aspect_ratios`,
`resolutions` (mit `default_aspect_ratio` und `default_resolution`),
`max_num_outputs`, `credits_per_image` pro Auflösung sowie, ob er trainierte Modelle
(`supports_trained_refs`) und eine Farbpalette (`supports_color_palette`)
akzeptiert. Der Endpoint ist kostenlos und braucht den Scope `images.generate`.

Lies diesen Endpoint, bevor du
[`POST /images/generations`](/de/api-reference/images/generate) aufrufst, und
übergib die `id` eines Eintrags als `engine` — eine Engine, ein Seitenverhältnis
oder eine Auflösung außerhalb der Liste liefert `422`, bevor Credits berechnet
werden. Eine Anfrage kostet `credits_per_image` bei der gewählten Auflösung ×
`num_outputs`.

> [!NOTE]
>
> Generiert deine Organisation nur mit ihren trainierten Modellen, ist `data` leer
> und `unavailable_reason` ist `organization_restricted`. Lass `engine` weg und
> übergib mindestens ein trainiertes Modell (`style_id`, `object_ids`,
> `person_ids`, `setting_ids`) oder eine `color_palette_id` — siehe
> [Bildgenerierung](/de/api-reference/images/overview.md#engines). Für alle anderen
> Aufrufer ist `unavailable_reason` gleich `null`.


## OpenAPI

````yaml api-reference/openapi.json GET /images/models
openapi: 3.1.0
info:
  title: Samsa API
  description: >-
    The Samsa public REST API. Authenticate with an organization API key
    (`Authorization: Bearer samsa_sk_...`) or an OAuth 2.1 access token
    (`Authorization: Bearer samsa_at_...`). Errors follow a single envelope
    shape; every response carries an `X-Request-ID`.
  version: 1.0.0
servers:
  - url: https://api.samsa.ai/public/v1
security:
  - BearerAuth: []
paths:
  /images/models:
    get:
      tags:
        - Images
      summary: List the available image engines
      description: >-
        Returns the public text-to-image engine catalog available to your
        organization: aspect ratios, resolutions, defaults, `num_outputs` limit,
        credits per image at each resolution, and whether trained models
        (`supports_trained_refs`) and a color palette (`supports_color_palette`)
        are accepted. Pass an engine's `id` as `engine` on `POST
        /images/generations`. For an organization that generates only with its
        trained models, `data` is empty and `unavailable_reason` is
        `organization_restricted`. Requires the `images.generate` scope.
      operationId: list_image_engines_images_models_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicImageEngineList'
        '401':
          description: Missing, invalid, expired, or revoked API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '403':
          description: The API key lacks the required scope for this operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Generation, or a referenced model/palette, not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '422':
          description: Request validation failed (prompt, engine, resolution, ...).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Per-key rate limit or per-org concurrency cap exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    PublicImageEngineList:
      properties:
        data:
          items:
            $ref: '#/components/schemas/PublicImageEngine'
          type: array
          title: Data
        unavailable_reason:
          anyOf:
            - type: string
              const: organization_restricted
            - type: 'null'
          title: Unavailable Reason
          description: >-
            `organization_restricted` when your organization generates only with
            its trained models (`data` is then empty: omit `engine` and pass
            trained models); `null` otherwise.
      type: object
      required:
        - data
      title: PublicImageEngineList
      description: '`GET /images/models` response — the public text-to-image engine catalog.'
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - error
      title: ErrorEnvelope
      description: The complete public error body — an ``error`` object wrapper (ADR §5).
    PublicImageEngine:
      properties:
        id:
          type: string
          title: Id
          description: Public engine id — pass as `engine` on `POST /images/generations`.
        name:
          type: string
          title: Name
          description: Human-readable engine name.
        is_default:
          type: boolean
          title: Is Default
          description: True for the engine used when `engine` is omitted.
        provider_family:
          type: string
          title: Provider Family
          description: >-
            Maker of the underlying model — `google`, `bytedance`, or
            `black_forest_labs`.
        aspect_ratios:
          items:
            type: string
          type: array
          title: Aspect Ratios
          description: Valid `aspect_ratio` values for this engine.
        default_aspect_ratio:
          type: string
          title: Default Aspect Ratio
          description: Aspect ratio used when `aspect_ratio` is omitted.
        resolutions:
          items:
            type: string
          type: array
          title: Resolutions
          description: Valid `resolution` values for this engine.
        default_resolution:
          type: string
          title: Default Resolution
          description: Resolution used when `resolution` is omitted.
        max_num_outputs:
          type: integer
          title: Max Num Outputs
          description: Largest `num_outputs` value for this engine.
        credits_per_image:
          additionalProperties:
            type: integer
          type: object
          title: Credits Per Image
          description: >-
            Credits charged per output image at each supported resolution (the
            request costs this x `num_outputs`).
        supports_trained_refs:
          type: boolean
          title: Supports Trained Refs
          description: >-
            True when `style_id`, `object_ids`, `person_ids` and `setting_ids`
            are accepted. When false, a request with any of them returns `422`
            (refs are never dropped and the engine is never switched).
        supports_color_palette:
          type: boolean
          title: Supports Color Palette
          description: >-
            True when `color_palette_id` is accepted; when false it returns
            `422`.
      type: object
      required:
        - id
        - name
        - is_default
        - provider_family
        - aspect_ratios
        - default_aspect_ratio
        - resolutions
        - default_resolution
        - max_num_outputs
        - credits_per_image
        - supports_trained_refs
        - supports_color_palette
      title: PublicImageEngine
      description: >-
        One engine in the `GET /images/models` catalog (the public text-to-image
        engines).


        Field-level ``examples=`` are deliberately absent: the whole row is one

        coherent object and is advertised as such via ``json_schema_extra``
        above.
      examples:
        - aspect_ratios:
            - '1:1'
            - '16:9'
            - '9:16'
            - '4:3'
            - '3:4'
            - '3:2'
            - '2:3'
            - '5:4'
            - '4:5'
            - '21:9'
            - '4:1'
            - '1:4'
            - '8:1'
            - '1:8'
          credits_per_image:
            1K: 5
            2K: 10
            4K: 20
          default_aspect_ratio: '1:1'
          default_resolution: 1K
          id: nano_banana_pro
          is_default: true
          max_num_outputs: 4
          name: Nano Banana Pro
          provider_family: google
          resolutions:
            - 1K
            - 2K
            - 4K
          supports_color_palette: true
          supports_trained_refs: true
    ErrorDetail:
      properties:
        type:
          type: string
          title: Type
          examples:
            - authentication_error
        code:
          type: string
          title: Code
          examples:
            - invalid_api_key
        message:
          type: string
          title: Message
          examples:
            - The provided API key is invalid, expired, or revoked.
        request_id:
          type: string
          title: Request Id
          examples:
            - 8f14e45fceea167a5a36dedd4bea2543
        param:
          anyOf:
            - type: string
            - type: 'null'
          title: Param
          description: Present on validation errors — names the offending field.
          examples:
            - aspect_ratio
      type: object
      required:
        - type
        - code
        - message
        - request_id
      title: ErrorDetail
      description: The ``error`` object of the public envelope (ADR §5).
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key (`Authorization: Bearer samsa_sk_...`) or OAuth 2.1
        access token (`Authorization: Bearer samsa_at_...`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.