Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Build LLM-powered apps with the Anthropic Claude API or SDK across Python, TypeScript, Java, Go, Ruby, C#, and PHP.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
php/claude-api/batches.md
1# Message Batches — PHP23## Message Batches API45```php6$batch = $client->messages->batches->create(requests: [7['customId' => 'req-1', 'params' => ['model' => 'claude-opus-4-8', 'maxTokens' => 1024, 'messages' => [...]]],8['customId' => 'req-2', 'params' => [...]],9]);10// Poll $client->messages->batches->retrieve($batch->id) until processingStatus === 'ended',11// then iterate $client->messages->batches->results($batch->id).12```1314---1516