OpenAI · Arazzo Workflow

OpenAI Chat then Speak

Version 1.0.0

Generate a chat reply, then synthesize it to spoken audio.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Artificial IntelligenceLarge Language ModelsT1ArazzoWorkflows

Provider

openai

Workflows

chat-then-speak
Create a chat reply and convert it to speech audio.
Asks a chat model to answer a prompt, then feeds the reply text to the speech endpoint and returns the synthesized audio.
2 steps inputs: apiKey, chatModel, prompt, speechModel, voice outputs: audio, reply
1
createChat
Create a chat completion answering the user prompt.
2
speak
Synthesize the chat reply into spoken audio.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: OpenAI Chat then Speak
  summary: Generate a chat reply, then synthesize it to spoken audio.
  description: >-
    Creates a chat completion from a user prompt and then sends the assistant
    reply to the text-to-speech endpoint to produce spoken audio. Every step
    spells out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: audioApi
  url: ../openapi/openai-audio-api-openapi.yml
  type: openapi
- name: chatApi
  url: ../openapi/openai-chat-api-openapi.yml
  type: openapi
workflows:
- workflowId: chat-then-speak
  summary: Create a chat reply and convert it to speech audio.
  description: >-
    Asks a chat model to answer a prompt, then feeds the reply text to the
    speech endpoint and returns the synthesized audio.
  inputs:
    type: object
    required:
    - apiKey
    - chatModel
    - prompt
    - speechModel
    - voice
    properties:
      apiKey:
        type: string
        description: OpenAI API key used as a Bearer token.
      chatModel:
        type: string
        description: The chat model id (e.g. gpt-4o-mini).
      prompt:
        type: string
        description: The user prompt to answer.
      speechModel:
        type: string
        description: The text-to-speech model id (e.g. gpt-4o-mini-tts or tts-1).
      voice:
        type: string
        description: The voice to use for synthesis (e.g. alloy).
  steps:
  - stepId: createChat
    description: Create a chat completion answering the user prompt.
    operationId: createChatCompletion
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiKey"
    requestBody:
      contentType: application/json
      payload:
        model: $inputs.chatModel
        messages:
        - role: user
          content: $inputs.prompt
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      reply: $response.body#/choices/0/message/content
  - stepId: speak
    description: Synthesize the chat reply into spoken audio.
    operationId: createSpeech
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiKey"
    requestBody:
      contentType: application/json
      payload:
        model: $inputs.speechModel
        input: $steps.createChat.outputs.reply
        voice: $inputs.voice
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      audio: $response.body
  outputs:
    reply: $steps.createChat.outputs.reply
    audio: $steps.speak.outputs.audio

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/openai-chat-then-speak-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.