Documentation Index
Fetch the complete documentation index at: https://platform.stepfun.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Retrieve metadata for a model, including creation time and owner.
Endpoint
GET https://api.stepfun.ai/v1/models/{model}
Path parameters
model string required
Model ID.
Response
Returns a single Model object.
Example
from openai import OpenAI
client = OpenAI(api_key="STEP_API_KEY", base_url="https://api.stepfun.ai/v1")
print(client.models.retrieve("step-tts-2"))
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: "STEP_API_KEY",
baseURL: "https://api.stepfun.ai/v1"
});
async function main() {
const model = await openai.models.retrieve("step-tts-2");
console.log(model);
}
main();
curl https://api.stepfun.ai/v1/models/step-tts-2 \
-H "Authorization: Bearer $STEP_API_KEY"
{
"id": "step-tts-2",
"object": "model",
"created": 1713196800,
"owned_by": "stepai"
}