Pricing

Authentication: Required (JWT token or Api Key)

Model Pricing

get

Retrieves pricing information for all models or a specific model if provided. Pricing is based on model tiers and includes input and output token prices per million tokens.

Authorizations
AuthorizationstringRequired

Enter your API key or JWT with the 'Bearer ' prefix

Query parameters
model_idstringOptional

ID of the model to retrieve pricing for. If not provided, pricing for all available models will be returned.

Responses
200

Successfully retrieved pricing information

application/json
get
/api/v1/pricing
curl -X GET "https://app.morphware.com/api/v1/pricing" \
  -H "Authorization: Bearer <YOUR_TOKEN>"
{
  "data": [
    {
      "model_id": "llama2-7b",
      "tier": 1,
      "pricing": {
        "input_token_price": 0.003,
        "output_token_price": 0.008
      }
    },
    {
      "model_id": "llama2-13b",
      "tier": 2,
      "pricing": {
        "input_token_price": 0.23,
        "output_token_price": 0.67
      }
    }
  ]
}

Last updated