capabilities.work

List Models then Create Chat Completion

A 2-step recipe with OpenAI. We can help you get access.

Recipe · 2 steps

List Models then Create Chat Completion

with OpenAI

List models and create a chat completion with a selected model.

  1. List the models available to the authenticated account.
  2. Create a chat completion using the selected model and the supplied user message.
What you'll need to have ready
  • apiKey: OpenAI API key used as a Bearer token.
  • model: The model id to use for the chat completion (e.g. gpt-4o-mini).
  • userMessage: The user message content to send to the model.
For your developer

Arazzo workflow openai:list-models-then-chat, 2 operations: listModels → createChatCompletion. Specs on APIs.io.