Endpoint
GET https://api.stepfun.ai/v1/models/{model}
Path parameters
modelstringrequired
Model ID.
Response
Returns a single Model object.Example
- python
- js
- curl
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
GET https://api.stepfun.ai/v1/models/{model}
model string required
from openai import OpenAI
client = OpenAI(api_key="YOUR_STEP_API_KEY", base_url="https://api.stepfun.ai/v1")
print(client.models.retrieve("step-5-preview"))
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: "YOUR_STEP_API_KEY",
baseURL: "https://api.stepfun.ai/v1"
});
async function main() {
const model = await openai.models.retrieve("step-5-preview");
console.log(model);
}
main();
curl https://api.stepfun.ai/v1/models/step-5-preview \
-H "Authorization: Bearer $STEP_API_KEY"
{
"id": "step-5-preview",
"object": "model",
"created": 1789747200,
"owned_by": "stepai"
}
Was this page helpful?
