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

# Get Comprehensive Pricing Details

> Retrieves comprehensive pricing details for all API features including usage costs, service costs, and special pricing features.



## OpenAPI

````yaml https://api.swarms.world/openapi.json get /v1/usage/costs
openapi: 3.1.0
info:
  title: Swarms API
  description: >-
    The Swarms API delivers a high-performance, enterprise-grade platform for
    orchestrating advanced multi-agent systems. Built on a Rust-powered agent
    runtime, it enables scalable, robust, and secure agent collaboration,
    supporting complex workflows and dynamic agent communication. The API
    exposes a comprehensive suite of RESTful endpoints for the management,
    execution, and monitoring of agents, swarms, and related resources,
    empowering organizations to automate and optimize mission-critical
    processes. To access the API, obtain your API key from the [Swarms API Keys
    page](https://swarms.world/platform/api-keys). For detailed integration
    guides, best practices, and reference material, consult the [Swarms API
    Documentation](https://docs.swarms.ai).
  version: 1.0.0
servers:
  - url: https://api.swarms.world
    description: Swarms Production API
security: []
paths:
  /v1/usage/costs:
    get:
      tags:
        - Pricing
      summary: Get Comprehensive Pricing Details
      description: >-
        Retrieves comprehensive pricing details for all API features including
        usage costs, service costs, and special pricing features.
      operationId: usage_costs_v1_usage_costs_get
      parameters:
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PricingDetailsOutput'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PricingDetailsOutput:
      properties:
        usage_pricing:
          $ref: '#/components/schemas/UsagePricingModel'
          description: >-
            Usage pricing for all API operations including token costs, agent
            costs, search, scrape, and special pricing features.
        timestamp:
          anyOf:
            - type: string
            - type: 'null'
          title: Timestamp
          description: ISO timestamp when the pricing information was retrieved.
      type: object
      required:
        - usage_pricing
      title: PricingDetailsOutput
      description: >-
        Comprehensive pricing details for all API features.

        Includes usage costs for all API operations and additional service
        costs.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UsagePricingModel:
      properties:
        swarm_completions_agent_cost:
          type: number
          title: Swarm Completions Agent Cost
          description: Cost per agent in swarm completions (USD).
          default: 0.01
        swarm_completions_input_cost_per_1m:
          type: number
          title: Swarm Completions Input Cost Per 1M
          description: Cost per 1 million input tokens for swarm completions (USD).
          default: 6.5
        swarm_completions_output_cost_per_1m:
          type: number
          title: Swarm Completions Output Cost Per 1M
          description: Cost per 1 million output tokens for swarm completions (USD).
          default: 18.5
        agent_completions_input_cost_per_1m:
          type: number
          title: Agent Completions Input Cost Per 1M
          description: Cost per 1 million input tokens for agent completions (USD).
          default: 6.5
        agent_completions_output_cost_per_1m:
          type: number
          title: Agent Completions Output Cost Per 1M
          description: Cost per 1 million output tokens for agent completions (USD).
          default: 18.5
        agent_completions_img_cost:
          type: number
          title: Agent Completions Img Cost
          description: Cost per image for agent completions (USD).
          default: 0.25
        agent_completions_mcp_cost:
          type: number
          title: Agent Completions Mcp Cost
          description: Cost per MCP call for agent completions (USD).
          default: 0.1
        search_cost:
          type: number
          title: Search Cost
          description: Cost per search operation in dollars (USD).
          default: 0.04
        scrape_cost:
          type: number
          title: Scrape Cost
          description: Cost per scrape operation in dollars (USD).
          default: 0.15
        night_time_discount:
          type: number
          title: Night Time Discount
          description: Discount multiplier for night time usage (0.50 = 50% discount).
          default: 0.5
      type: object
      title: UsagePricingModel
      description: >-
        Unified pricing model for all API usage costs.

        Captures input and output token costs, agent costs, and additional fees
        for different cost structures.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````