Mistral AI's pay-as-you-go API for chat, code completion, OCR, embeddings, audio and agents, with Python and TypeScript SDKs.
OpenAI API alternatives
Other apis & sdks people use for the same jobs as OpenAI API, ordered by how much they overlap: shared use cases, features and the tools they work with.
Google's API for Gemini models, with a free tier and the Google GenAI SDKs for Python, JS, Go, Java and C#.
xAI's (now SpaceXSI) OpenAI-compatible API for Grok text, image, video and voice models, with Python and TypeScript SDKs.
Anthropic's REST API for Claude models, with official SDKs in Python, TypeScript, Go, Java, C#, PHP and Ruby.
Cohere's API for Command chat models, Embed and Rerank, with official Python, TypeScript, Java and Go SDKs and free trial keys.