Cookie settings

We use cookies to deliver and improve our services, analyze site usage, and if you agree, to customize or personalize your experience and market our services to you. You can read our Cookie Policy here.

Claude Platform Docs

HTTP API reference

Create a Text Completion
POST/v1/complete

[Legacy] Create a Text Completion.

Create a Message
POST/v1/messages

Send a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation.

Count tokens in a Message
POST/v1/messages/count_tokens

Count the number of tokens in a Message.

List Models
GET/v1/models

List available models.

Get a Model
GET/v1/models/{model_id}

Get a specific model.

Upload File
POST/v1/files
List Files
GET/v1/files
Download File
GET/v1/files/{file_id}/content
Get File Metadata
GET/v1/files/{file_id}
Delete File
DELETE/v1/files/{file_id}
Create Skill
POST/v1/skills
List Skills
GET/v1/skills
Get Skill
GET/v1/skills/{skill_id}
Delete Skill
DELETE/v1/skills/{skill_id}
Get Current Organization
GET/v1/organizations/me

Retrieve information about the organization associated with the authenticated API key.