ShareAI Platform Docs
CATEGORY

Chat completions

Bearer API keys, OAuth access tokens and streaming.

View as Markdown

Make your first API request

Create a ShareAI API key, choose an available model and send a chat request from your server with Bearer authentication.

Create a chat completion

Send a ShareAI chat-completions request with a Bearer API key and understand the supported model, messages and stream fields.

Send chat requests with OAuth

Use an approved ShareAI OAuth access token for customer-funded chat completions and handle token expiry, consent and account boundaries.

Stream a chat response

Read ShareAI chat-completions server-sent events, append content deltas once and handle completion, errors and interrupted streams.

Inspect key access and account identity

Read ShareAI API key information to check model and provider restrictions and the account identity associated with an inference credential.

ShareAI Platform Docs
All documentation

Search by title or content.

Ask about this page

Choose an assistant to explore this page. You can also copy the page and paste it into your conversation.

Ask ChatGPTAsk ClaudeAsk GrokAsk ShareAI