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

# Get model details (deprecated)

> Deprecated: use `GET /v1/models/{slug}` instead. Retained for backwards compatibility; returns the same payload, including the nullable compact `cost` estimate.




## OpenAPI

````yaml /openapi_specs/models.json get /v1/model
openapi: 3.0.3
info:
  title: each::labs Official API v1
  description: >
    Official each::labs API V1.

    This API provides access to our comprehensive AI model catalog and other
    resources.


    ## Public contract notes


    - Public API routes handled by request logging include `X-Request-Id` for
      support and log correlation. Clients may send `X-Request-Id`; otherwise
      api-service generates one. Root, health, and metrics endpoints are excluded.
    - REST error bodies keep the backward-compatible JSON shape used by existing
      clients. Most errors include at least `error`; some shared error paths also
      include `status` and `details`. Use the HTTP status code as the primary
      programmatic signal unless an endpoint documents a richer envelope.
    - Rate-limit and retry headers are endpoint-dependent. If a response
    includes
      `Retry-After`, honor it before retrying; otherwise use bounded exponential
      backoff for retryable 429/5xx responses.
  version: 1.0.0
  contact:
    name: API Support
    email: support@eachlabs.ai
  x-logo:
    url: ./logo-white.svg
    altText: each::labs
servers:
  - url: https://api.eachlabs.ai
    description: Production server
security: []
tags:
  - name: AI Models
    description: Endpoints for listing and retrieving AI models and other resources.
  - name: AI Models Prediction
    description: Endpoints for managing model predictions
  - name: Uploads
    description: Endpoints for uploading files that can be used as model inputs.
  - name: Executions
    description: Endpoints for listing execution history.
  - name: Workflows
    description: >-
      Endpoints for creating workflows and triggering workflow executions
      through api-service.
  - name: OpenAI Compatibility
    description: OpenAI-compatible endpoints for LLM Router requests.
  - name: Webhooks
    description: >
      Endpoints for retrieving webhook information and delivery history.


      **Note:** Currently, webhooks are only supported for Workflows V2. We are
      actively expanding webhook support to other services and will update this
      documentation as new integrations become available.
paths:
  /v1/model:
    get:
      tags:
        - AI Models
      summary: Get model details (deprecated)
      description: >
        Deprecated: use `GET /v1/models/{slug}` instead. Retained for backwards
        compatibility; returns the same payload, including the nullable compact
        `cost` estimate.
      operationId: getModel
      parameters:
        - name: slug
          in: query
          required: true
          schema:
            type: string
          description: Model slug identifier
          example: nano-banana-pro-edit
      responses:
        '200':
          description: Model details retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelDetail'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      deprecated: true
components:
  schemas:
    ModelDetail:
      type: object
      required:
        - cost
      properties:
        title:
          type: string
          example: Nano Banana Pro Edit
        slug:
          type: string
          example: nano-banana-pro-edit
        version:
          type: string
          deprecated: true
          description: >-
            Deprecated. Always returns "0.0.1". Will be removed in a future
            version.
          example: 0.0.1
        output_type:
          type: string
          example: array
        request_schema:
          type: object
          description: >
            JSON Schema for API requests to this model.

            Defines the structure, types, and validation rules for making
            requests.
          example:
            type: object
            required:
              - prompt
            properties:
              prompt:
                type: string
                minLength: 10
                maxLength: 500
        cost:
          type: object
          nullable: true
          required:
            - currency
            - type
            - amount
            - unit
            - estimate
            - description
          description: >
            Nullable pricing guidance for planning. Returns `null` when no
            reliable public estimate is available. Estimates may change with
            provider rates, promotions, or model configuration; use
            `metrics.cost` after execution for the settled value.
          properties:
            currency:
              type: string
              enum:
                - USD
              example: USD
            type:
              type: string
              enum:
                - fixed
                - usage_based
              description: Whether the estimate is fixed per execution or usage-based.
              example: fixed
            amount:
              type: number
              format: double
              nullable: true
              description: Estimated USD amount for fixed pricing; otherwise `null`.
              example: 0.04
            unit:
              type: string
              nullable: true
              enum:
                - execution
              description: Billing unit for fixed pricing; otherwise `null`.
              example: execution
            estimate:
              type: string
              description: |
                Presentation-ready price guidance. Usage-based pricing may
                include a safely recognized unit rate, range, or billing
                driver; otherwise it falls back to `Usage-based pricing`.
              example: $0.068–$0.28 per second, depending on resolution
            description:
              type: string
              enum:
                - Pricing is an estimate and may change as rates are updated.
              example: Pricing is an estimate and may change as rates are updated.
    Error:
      type: object
      description: >
        Backward-compatible REST error body. Endpoint-specific handlers may
        return only

        `error`; shared error paths may also include `status` and `details`.
      properties:
        status:
          type: integer
          description: HTTP status code, when returned by the shared error handler.
          example: 400
        error:
          type: string
          description: Safe user-facing error message.
          example: error message
        details:
          nullable: true
          description: Optional validation or request details for client errors.
      required:
        - error
  responses:
    BadRequest:
      description: Bad request
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: slug parameter is required
    NotFound:
      description: Resource not found
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 'Failed to fetch model: model not found'
    InternalServerError:
      description: Internal server error
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 'Failed to fetch models: internal error'
  headers:
    RequestId:
      description: >-
        Request correlation ID. Echoes the incoming `X-Request-Id` header or a
        generated ID.
      schema:
        type: string
      example: 123e4567-e89b-12d3-a456-426614174000

````