DataEyesAI
home
home
  1. Anthropic format
  • ​​Quick Start
    • Overview
    • Authorization
    • Online Debugging
    • Integration Guide
  • API Reference​​
    • Error Codes
    • HTTP Notes
  • Search / Reader Product
    • Web Reader API​​
      • Web Reader API
      • Web Reader API(HK)
    • Web Search API​​
      • Modal Card API
        • Weather
          • All City ID
          • Weather Query API
      • Web Search API
      • Video Search api
      • Trending Search API
    • Document OCR Parsing API
      • fiel upload
      • URL Parsing
  • AI Models API
    • Base Url
    • Configuration Guide for Various Plugins
    • System interface
      • Query account information
    • List models
      • Models
    • OpenAI format (supports major original models)
      • Chat (Response)
        • Create Network Search
        • Create Model Response GPT-5 Enable Thinking
        • Create Function Call
        • Create Model Response
        • Create Model Response (Streaming Return)
        • Create Model Response (Control Thinking Length)
      • ChatGPT Interface
        • Audio
          • Audio to text gpt-4o-transcribe
          • GPT-4o-audio
          • Audio to text whisper-1
          • Audio to text gpt-4o-transcribe
          • Create voice gpt-4o-mini-tts
        • Chat
          • Create chat-based image recognition (non-streaming)
          • Create chat-based image recognition (streaming)
          • Create chat-based image recognition (streaming) best64
          • Official N test
          • Create structured output
          • Control the effort level of the inference model
          • Create chat function call
          • deepseek-ocr recognition
          • Create chat completion (non-stream)
        • Completions
          • ChatGPT automatic completion
          • Create completion
      • Image
        • Edit image
        • Create chat completion (streaming)
        • Create chat completion (qwen-mt-turbo)
        • Create chat completion with deepseek v3.1 level of reasoning (streaming)
      • Audio
        • Speech recognition
        • Speech synthesis
        • Official Function Calling invocation
        • Create chat-generated images (non-streaming)
      • Embedding
        • Text embeddings
    • Anthropic format
      • Chat
        POST
      • Chat(prompt cache)
        POST
      • Streaming response
        POST
      • Chat (deep reasoning)
        POST
      • Tool invocation (function call)
        POST
      • Analyze image
        POST
    • Google Gemini interface
      • Native format
        • Text-to-image + control over aspect ratio + clarity
        • Generate image
        • Text generation
        • Text generation - stream
        • Text generation + reasoning - stream
        • Image generation
        • Formatted output
        • Function call
        • Document understanding
        • URL context [native format]
        • Code execution
        • Video understanding
        • URL context
        • Video understanding - url [native format]
        • Imagen 4
        • Audio understanding
        • Embeddings
        • Chat
        • Edit image
      • Image-to-image Base64 request method
        • Multi-image fusion slice generation with gemini-3-pro-image-preview, controlling aspect ratio and clarity
        • Image editing
        • Single image gemini-3-pro-image-preview, controlling aspect ratio and clarity.
        • Image generation( gemini-2.5-flash-image)
        • Image generation gemini-2.5-flash-image, controlling aspect ratio.
        • Image understanding
      • Image-to-image URL request returns URL request format OpenAI
        • Single image generation with gemini-3-pro-image-preview, controlling aspect ratio and clarity.
        • Multi-image fusion slice generation with gemini-3-pro-image-preview, controlling aspect ratio and clarity.
        • Image understanding
    • NanoBanana
      • OpenAI request
        • Edit image
        • OpenAI image format
      • Gemini request
        • Generate image
        • Edit image
    • Midjourney format
      • Task query interface
      • Upload image
      • Get seed (Seed)
      • Submit Imagine task
      • Query tasks based on ID list
      • FaceSwap
      • Execute Action operation
      • /mj/submit/blend
      • Submit Describe task
      • Submit Modal
      • Refresh link
      • Edit image
      • Query task status by task ID
      • Get the seed of the task image
    • Doubao - Video Generation
      • Text-to-video example
      • Image-to-video example
      • Query a single task
    • Doubao - Painting
      • doubao-seededit-3-0-i2i-250628
      • doubao-seedream-4-0-250828 - text-to-image
      • doubao-seedream-4-0-250828 - image-to-image
      • doubao-seedream-4-0-250828 - multi-image generation
    • Rerank Reordering Model
      • Rerank
    • Text-to-Music Suno
      • Task Submission
        • Generate Song (Inspiration Mode)
        • Generate Song (Custom Mode)
        • Generate Song (Continuation Mode)
        • Generate Song (Singer Style)
        • Generate Song (Secondary Creation from Uploaded Song)
        • Generate Song (Song Stitching)
        • Generate Lyrics
        • Song Stitching
      • Query Interface
        • Batch Retrieve Tasks
        • Query Single Task
    • Video Model
      • Veo-Video Generation
        • OpenAI Video Format (Recommended)
          • OpenAI Creates Video with Images
          • OpenAI Query Task
          • OpenAI Download Video
      • Sora-Video Generation
        • OpenAI Official Video Format (Recommended)
          • sora-2/sora-2-pro
            • OpenAI Query Task
            • OpenAI Download Video
            • OpenAI Creates Video with Images
            • OpenAI Creates Video (with Character)
            • OpenAI Edit Video
        • Chat Format
          • Create Video
          • Create video + image
          • Continuously modify and generate video
      • Kling -Video Generation
        • Text-to-video
        • Image-to-video
        • Query task (free)
      • Wan -Video Generation
        • Create video with image Wan
        • Query video
      • MiniMax -Video Generation
        • Text-to-video generation task
        • Image-to-video task
        • Query video generation task status
        • Video download
      • Vidu -Video Generation
        • Generates video
        • Query
  • ​​FAQ​​
    • Data Updates
  • Change Log​​
home
home
  1. Anthropic format

Chat (deep reasoning)

Developing
Search/Read product
https://api.dataeyes.ai
Search/Read product
https://api.dataeyes.ai
POST
Claude models that support thinking mode are required, such as: claude-sonnet-4-20250514-thinking
Set the thinking parameter as follows:
“thinking”:
{
"type": "enabled",
"budget_tokens": 2048
}

Request

Header Params

Body Params application/json

Example
{
    "model": "claude-sonnet-4-20250514-thinking",
    "max_tokens": 4096,
    "messages": [
        {
            "role": "user",
            "content": "Hello, world"
        }
    ],
    "thinking": {
        "type": "enabled",
        "budget_tokens": 2048
    }
}

Responses

🟢200成功
application/json
Body

Example
{
    "id": "msg_01NzY1b1U3Vyddchtadhnuti",
    "type": "message",
    "role": "assistant",
    "model": "claude-sonnet-4-20250514",
    "content": [
        {
            "type": "thinking",
            "thinking": "The user has greeted me with \"Hello, world\" which is a classic programming phrase often used as the first program when learning a new language. Since I'm Claude Code, Anthropic's official CLI for Claude, I should respond in a way that's appropriate for a command-line interface tool while being helpful and friendly.",
            "signature": "EuUDCkYIBxgCKkCzx6kU85Actj1kmBm+xn/vRVvvFL9rvVkWlqicz/B0D8GLIXMsPOOCEHTm7NIlEZj9LUV9xaVL9BnvjersmtizEgxRHhxFEOL8x2r+5DgaDAnZXM95VV8Md0X3zSIwW3ullBFu2ksoNEqpvH8j5TE7AdYht/fOHd/4KpMe+54naa/EEpI6WH7YQQPHgyt4KswCCNy6w6l7Cs3GNUkQ8il7DvjPZS5m3yY6p645AuHitxIPEt7mShmnThjNJPKChkjwD4rZgBNdJt7Boz+ludAqG5tMByHQyUsPaw+mosUzl2yB2APVoUDmz8sBhJYWLPZR8t4hqF4+3XL/Mg1KD3KwkQqLDGkmLidGfNwH4Aj4sPH+Z8ml4OvYy/x30xgEqwkZT+X0jIVuY/ZVy8yIdxEO2Trnot0tcGPlN8Lkticb68MqkRocceVSivGjojxyaX5XJ1WuJNNX1lRbqisWDA3gBYnenaUX69qRQgDKK+vWSSuvweTen2YsOxJa2qnALhCzhmN1VZ7UTb5W2z7pnM/XJ4LOc0zI+dUVbTcVZtxXoiSXCRqrorbGC5sY9tnHB+4MY/yrjX3KWFK9BzsQ6GGMaib6yLuJSgtNqKW7WizbRcGNCxFx1ayeSXc6nOgYAQ=="
        },
        {
            "type": "text",
            "text": "Hello! I'm Claude Code, Anthropic's CLI tool for interacting with Claude. \n\nHow can I help you today? I can assist with:\n- Code generation and debugging\n- File operations and project analysis\n- Running commands and scripts\n- General programming questions\n- And much more!\n\nWhat would you like to work on?"
        }
    ],
    "stop_reason": "end_turn",
    "stop_sequence": null,
    "usage": {
        "input_tokens": 53,
        "cache_creation_input_tokens": 0,
        "cache_read_input_tokens": 0,
        "cache_creation": {
            "ephemeral_5m_input_tokens": 0,
            "ephemeral_1h_input_tokens": 0
        },
        "output_tokens": 151,
        "service_tier": "standard"
    }
}
Previous
Streaming response
Next
Tool invocation (function call)