https://sharemy.ai/v1.
Basics
- Use
https://sharemy.ai/v1as the SDK base URL. Calling/v1itself returns a 404 that lists the endpoints. - The catalogue is public. Job requests use
Authorization: Bearer smai_.... Each account shares four job slots across its tokens. See Authentication. - Send JSON for chat and speech. Image generations take JSON or multipart form data. Top-level JSON fields set to
nullare treated as omitted. Image edits and audio uploads takemultipart/form-data. - Browsers can call from any origin. The API allows
GET,HEAD,POSTandOPTIONS, and echoes the request headers named in a CORS preflight. - Catalogue and job responses use
Cache-Control: no-store. - Job prices depend on the request. Failed or cancelled jobs are refunded. See Credits and pricing.
- An unknown path gets
404 not_found. A wrong method on a known path gets405 method_not_allowedwith anAllowheader. See Errors and limits.
Response headers
Browser JavaScript can read these headers across origins.Differences from OpenAI’s API
ShareMyAI runs small open models on people’s own machines, so it covers part of OpenAI’s API.- The API omits OpenAI’s embeddings, moderations, files, assistants, responses and realtime endpoints.
- Each model id works only on its own endpoint.
GET /v1/modelsgives each model’skind. - Chat is text only. Use one completion per call. Chat supports stop strings. JSON mode and required or named tool calls return
400 unsupported_value. - Generated and edited pictures come back as
b64_json. Image URLs and variations are unsupported. - Speech comes back only as WAV or raw PCM, and Kokoro accepts OpenAI voice aliases.
- Transcripts have segment timestamps only, not word timestamps.
- Chat pricing uses the requested output budget after capping. Token counts in
usagecan be estimates.
Things only ShareMyAI has
reasoning_contenton chat replies from models that think.seedon image generation requests and responses.growon image edits. Image jobs let you poll or cancel edits and generations.diarizeon transcriptions and translations, to label who spoke.- Model pricing, machine counts and chat token limits in the catalogue.
usage.cost_creditson chat completions and on the optional final usage chunk.