Skip to main content

Get Your API Key First

First, sign up for an account and get your API key from the AGCloud Dashboard.
Do not show your API Key to anybody! Otherwise your account will be at risk.

Make Your First Request

Here’s how to make your first API call using different programming languages:

Response Format

You’ll receive a JSON response like:
{
    "model": "claude-haiku-4-5-20251001",
    "id": "msg_bdrk_01LZo848oHddNScrKvWF5F2w",
    "type": "message",
    "role": "assistant",
    "content": [
        {
            "type": "text",
            "text": "你好!😊\n有什么我可以帮助你的吗?"
        }
    ],
    "stop_reason": "end_turn",
    "stop_sequence": null,
    "usage": {
        "input_tokens": 16,
        "cache_creation_input_tokens": 0,
        "cache_read_input_tokens": 0,
        "cache_creation": {
            "ephemeral_5m_input_tokens": 0,
            "ephemeral_1h_input_tokens": 0
        },
        "output_tokens": 102
    }
}

Next Step

Explore Claude APIs

Learn about claude-haiku-4-5-20251001 and other Authropic AI models

Try Text Generation

Create text using claude-haiku-4-5-20251001

Generate Videos

Create intersting videos with Sora

Use Claude API

Access Authropic Claude’s advanced capablities

Common Use Cases

Chat Completion

Build conversational AI applications with context-aware responses.

Image Generation

Create unique images from text descriptions for marketing, design, or creative projects.

Video Synthesis

Generate video content for social media, advertising, or educational purposes.

Audio Processing

Transcribe audio files or convert text to natural-sounding speech.

Rate Limits & Pricing

Rate limits and pricing vary by model and subscription tier. Check your Dashboard for details specific to your account.

Need Help?