curl
curl https://sharemy.ai/v1/modelsimport os
from openai import OpenAI
client = OpenAI(api_key=os.environ["SHAREMYAI_API_KEY"], base_url="https://sharemy.ai/v1")
for model in client.models.list():
print(model.id)import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.SHAREMYAI_API_KEY, baseURL: "https://sharemy.ai/v1" });
for await (const model of client.models.list()) {
console.log(model.id);
}{
"object": "list",
"data": [
{
"id": "qwen3-4b",
"object": "model",
"owned_by": "sharemyai",
"kind": "chat",
"created": 1764547200,
"pricing": {
"base_credits": 4,
"unit": "1000 requested output tokens"
},
"available": true,
"machines": 2,
"max_tokens": {
"default": 2048,
"limit": 4096
}
}
]
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "model_not_found",
"price_credits": 123,
"balance_credits": 123
}
}API reference
List models
Look up model ids, prices, chat token limits and current machine counts. The catalogue is public.
GET
/
v1
/
models
curl
curl https://sharemy.ai/v1/modelsimport os
from openai import OpenAI
client = OpenAI(api_key=os.environ["SHAREMYAI_API_KEY"], base_url="https://sharemy.ai/v1")
for model in client.models.list():
print(model.id)import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.SHAREMYAI_API_KEY, baseURL: "https://sharemy.ai/v1" });
for await (const model of client.models.list()) {
console.log(model.id);
}{
"object": "list",
"data": [
{
"id": "qwen3-4b",
"object": "model",
"owned_by": "sharemyai",
"kind": "chat",
"created": 1764547200,
"pricing": {
"base_credits": 4,
"unit": "1000 requested output tokens"
},
"available": true,
"machines": 2,
"max_tokens": {
"default": 2048,
"limit": 4096
}
}
]
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "model_not_found",
"price_credits": 123,
"balance_credits": 123
}
}Use
For what each model does, see Models.
GET /v1/models for the catalogue, GET /v1/models/{id} for one entry, and HEAD /v1/models for headers only. All three are public. An unknown id gets 404 model_not_found with param: "model".
The list is an object with object: "list" and a data array. A single lookup returns the model object directly. This example shows GET /v1/models/qwen3-4b while two machines offer it.
{
"id": "qwen3-4b",
"object": "model",
"owned_by": "sharemyai",
"kind": "chat",
"created": 1764547200,
"pricing": { "base_credits": 4, "unit": "1000 requested output tokens" },
"max_tokens": { "default": 2048, "limit": 4096 },
"available": true,
"machines": 2
}
created is a Unix timestamp in seconds. pricing.base_credits is the model’s base price for one pricing.unit. Only chat models have max_tokens.default and max_tokens.limit.
machines counts online machines offering the model, including busy ones. available is true when that count is positive. If the count is still zero when you submit a job, a synchronous call returns 503 no_provider. For an async image job, check error.code on the failed job.
Use kind to choose an endpoint.
kind | Endpoint |
|---|---|
chat | POST /v1/chat/completions |
image | POST /v1/images/generations |
image-edit | POST /v1/images/edits |
speech | POST /v1/audio/speech |
transcription | POST /v1/audio/transcriptions and POST /v1/audio/translations |