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

# Price a request

> Validates a request exactly as its route would and prices it. Send the returned id as Quote-Id within 10 minutes to bind that price. Generates nothing and holds no money.



## OpenAPI

````yaml /openapi.json post /quotes
openapi: 3.1.0
info:
  title: Superscore Studio API
  version: '2026-11-29'
  description: >-
    Generate images and short videos with your organization's Studio API key.
    Every generation is asynchronous: create it, then poll its Location.
servers:
  - url: https://studio.superscore.ai/api/v1
security:
  - bearerAuth: []
paths:
  /quotes:
    post:
      summary: Price a request
      description: >-
        Validates a request exactly as its route would and prices it. Send the
        returned id as Quote-Id within 10 minutes to bind that price. Generates
        nothing and holds no money.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - title: /generations
                  type: object
                  additionalProperties: false
                  required:
                    - route
                    - body
                  properties:
                    route:
                      const: /generations
                    body:
                      $ref: '#/components/schemas/StudioGenerationRequest'
                      description: The body you would send to that route.
                - title: /providers/reapi/images/generations
                  type: object
                  additionalProperties: false
                  required:
                    - route
                    - body
                  properties:
                    route:
                      const: /providers/reapi/images/generations
                    body:
                      $ref: '#/components/schemas/NativeImageRequest'
                      description: The body you would send to that route.
                - title: /providers/reapi/videos/generations
                  type: object
                  additionalProperties: false
                  required:
                    - route
                    - body
                  properties:
                    route:
                      const: /providers/reapi/videos/generations
                    body:
                      $ref: '#/components/schemas/NativeVideoRequest'
                      description: The body you would send to that route.
            example:
              route: /generations
              body:
                type: video
                prompt: A slow push in
                duration: 5
      responses:
        '200':
          description: The quote.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Quote'
        '400':
          description: 'invalid_json: the body is missing or not JSON.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            invalid_key: the Bearer key is missing, revoked or expired, or its
            issuer no longer has Superscore access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: The body would be refused by its route.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: >-
            temporarily_unavailable: retry with the same Idempotency-Key.
            dispatch_failed (generation routes): the job could not start and is
            settled as failed; retry with a new Idempotency-Key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    StudioGenerationRequest:
      oneOf:
        - type: object
          properties:
            type:
              type: string
              const: image
            prompt:
              type: string
              minLength: 1
              maxLength: 4000
              pattern: \S
            aspect_ratio:
              default: '1:1'
              type: string
              enum:
                - auto
                - '1:1'
                - '4:3'
                - '3:4'
                - '3:2'
                - '2:3'
                - '16:9'
                - '9:16'
                - '21:9'
                - '9:21'
            resolution:
              default: 1K
              type: string
              enum:
                - 1K
                - 2K
          required:
            - type
            - prompt
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              const: video
            prompt:
              type: string
              minLength: 1
              maxLength: 20000
              pattern: \S
            duration:
              default: 5
              type: integer
              minimum: 2
              maximum: 8
            aspect_ratio:
              default: '16:9'
              type: string
              enum:
                - adaptive
                - '16:9'
                - '9:16'
                - '1:1'
                - '4:3'
                - '3:4'
                - '21:9'
            resolution:
              default: 720P
              type: string
              enum:
                - 480P
                - 720P
                - 1080P
            audio:
              default: true
              type: boolean
          required:
            - type
            - prompt
          additionalProperties: false
    NativeImageRequest:
      type: object
      additionalProperties: false
      description: >-
        Qwen Image 2.1's own request body (reAPI), at the top level. Fields not
        listed are refused by name with 422 unsupported_parameter. Studio sets
        content_filter: true.
      required:
        - model
        - prompt
      properties:
        model:
          type: string
          const: qwen-image-2.1
        prompt:
          type: string
          description: What to draw. Sent exactly as written.
          pattern: \S
          minLength: 1
          maxLength: 4000
        aspect_ratio:
          type: string
          description: Output shape.
          enum:
            - auto
            - '1:1'
            - '4:3'
            - '3:4'
            - '3:2'
            - '2:3'
            - '16:9'
            - '9:16'
            - '21:9'
            - '9:21'
          default: '1:1'
        resolution:
          type: string
          description: Output tier; sets the price.
          enum:
            - 1K
            - 2K
          default: 1K
        background:
          type: string
          description: Transparent needs png or webp output.
          enum:
            - opaque
            - transparent
          default: opaque
        output_format:
          type: string
          description: Image file format.
          enum:
            - png
            - webp
            - jpeg
          default: png
        enhance_prompt:
          type: boolean
          description: Let the model expand the prompt.
          default: true
        seed:
          type: integer
          description: Fix the seed for repeatable output.
          minimum: 0
          maximum: 2147483647
      not:
        required:
          - background
          - output_format
        properties:
          background:
            const: transparent
          output_format:
            const: jpeg
    NativeVideoRequest:
      type: object
      additionalProperties: false
      description: >-
        Wan 3.0's own request body (reAPI), at the top level. Fields not listed
        are refused by name with 422 unsupported_parameter. Studio sets
        content_filter: true.
      required:
        - model
        - prompt
      properties:
        model:
          type: string
          const: wan3.0-video
        prompt:
          type: string
          description: The shot to film. Sent exactly as written.
          pattern: \S
          minLength: 1
          maxLength: 20000
        duration:
          type: integer
          description: Seconds of video; sets the price.
          default: 5
          minimum: 2
          maximum: 8
        resolution:
          type: string
          description: Output tier; sets the price.
          enum:
            - 480P
            - 720P
            - 1080P
          default: 1080P
        size:
          type: string
          description: Output shape.
          enum:
            - adaptive
            - '16:9'
            - '9:16'
            - '1:1'
            - '4:3'
            - '3:4'
            - '21:9'
          default: adaptive
        audio:
          type: boolean
          description: Generate a sound track.
          default: true
        prompt_extend:
          type: boolean
          description: Let the model expand the prompt.
          default: true
        seed:
          type: integer
          description: Fix the seed for repeatable output; -1 for random.
          minimum: -1
          maximum: 2147483647
    Quote:
      type: object
      required:
        - id
        - object
        - route
        - model
        - currency
        - expected_usd
        - max_usd
        - superscore_fee_usd
        - rate_version
        - expires_at
      properties:
        id:
          type: string
          format: uuid
        object:
          const: quote
        route:
          type: string
        model:
          type: string
        currency:
          const: USD
        expected_usd:
          type: number
        max_usd:
          type: number
        superscore_fee_usd:
          type: number
        rate_version:
          type: string
        expires_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - request_id
          properties:
            code:
              type: string
            message:
              type: string
            request_id:
              type: string
            field:
              type: string
              description: The offending field, for validation errors.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An organization API key (sk_studio_…) from Studio → API. Only the owner
        and admins create keys.

````

## Related topics

- [Idempotency and quotes](https://docs.superscore.ai/idempotency-and-quotes.md)
- [Superscore Studio API](https://docs.superscore.ai/index.md)
- [Pricing and billing](https://docs.superscore.ai/pricing.md)
- [Generate a video with Wan 3.0's parameters](https://docs.superscore.ai/api-reference/generate-a-video-with-wan-30s-parameters.md)
- [Generate an image with Qwen Image 2.1's parameters](https://docs.superscore.ai/api-reference/generate-an-image-with-qwen-image-21s-parameters.md)


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