Skip to main content
Skip to main content

Claude Sonnet 5.5

Claude Sonnet 5.5 is Anthropic's model for everyday coding, document creation and agent workflows. It combines visual understanding, adaptive reasoning and tool use with a 1,000,000-token context window and a standard output budget of up to 128,000 tokens.

  • 99.9% SLA
  • Official Discounts
  • Pay-as-you-go
  • Fast & Low Latency
Brand:AnthropicPrice: $1.4 / 1M input tokens
Open docs

Make your first request

Choose an API protocol and install its Python SDK. Replace YOUR_API_KEY with your MuseSpark API key, adjust the input, and run the example to send a request to this model.

Install the Python SDK

pip install openai

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.musespark.ai/proxy/openai/v1",
)

response = client.responses.create(
    model="claude-sonnet-5-5",
    input="Write a one-sentence release note for a new image model.",
)

print(response.output_text)

Protocol reference

Each protocol uses a different endpoint and request format. Use the matching SDK and authentication method for your chosen protocol.

OpenAI Responses API

Endpoint
POST https://api.musespark.ai/proxy/openai/v1/responses
Authentication
Authorization: Bearer <API_KEY>
Response
Use response.output_text for the generated text, or inspect response.output for structured output.