Development Guide
Choose an SDK or HTTP integration method, from your first request to streaming output and caching.
If you already have code, start with the corresponding SDK; if you haven’t chosen a tech stack yet, first verify the call with curl, then integrate it into your application.
Use Claude’s native protocol and view Python and TypeScript examples.
Call GPT or Claude using the OpenAI SDK, configuring the model ID and endpoint address.
View HTTP requests directly to rule out SDK configuration differences.
Confirm the endpoint, protocol, and applicable scope.
Continue refining after integration
Section titled “Continue refining after integration”- Streaming output : Handle incremental responses and connection drops.
- Prompt Caching : Understand usage conditions and how to verify results.
- Error codes and troubleshooting : Locate configuration or upstream issues based on specific errors.
- Usage logs and reconciliation : Verify request records.
When using ready-made software, you can go directly to tool integration .
From examples to application
Section titled “From examples to application”Python / Node.js, from setting environment variables to running the program.
Distinguish between configuration errors, temporary failures, and uncertain results.
Verify item by item by address, key, model, and protocol.
Use the Images API and save the generated results.
