Welcome to the dev community!
Check that the model and endpoint matches.
## Model endpoint compatibility
Endpoint Latest models /v1/assistants All GPT-4 and GPT-3.5 Turbo models. The retrieval
tool requiresgpt-4-turbo-preview
(and subsequent dated model releases) orgpt-3.5-turbo-1106
(and subsequent versions)./v1/audio/transcriptions whisper-1
/v1/audio/translations whisper-1
/v1/audio/speech tts-1
,tts-1-hd
/v1/chat/completions gpt-4
and dated model releases,gpt-4-turbo-preview
and dated model releases,gpt-3.5-turbo
and dated model releases, fine-tuned versions ofgpt-3.5-turbo
/v1/completions (Legacy) gpt-3.5-turbo-instruct
,babbage-002
,davinci-002
/v1/embeddings text-embedding-3-small
,text-embedding-3-large
,text-embedding-ada-002
/v1/fine_tuning/jobs gpt-3.5-turbo
,babbage-002
,davinci-002
/v1/moderations text-moderation-stable
,text-moderation-latest
/v1/images/generations dall-e-2
,dall-e-3
This list excludes all of our deprecated models.
https://platform.openai.com/docs/models/model-endpoint-compatibility