Run in Apifox
302.AI simplified the API. You only need to pass the model and message to get the output. Supports custom models. Price: 0.05 PTC/day Request
Example: Bearer {{YOUR_API_KEY}}
Body Params application/json
The ID of the model to be used.
The message want to send.
{
"model" : "gpt-3.5-turbo" ,
"message" : "hello"
}
Request samples curl --location --request POST 'https://api.302.ai/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-3.5-turbo",
"message":"hello"
}'
Responses application/json Generate Code
Modified at 2025-03-20 02:19:19