OpenAI

App · AI Models · 9 actions

Ask OpenAI's GPT models to write, summarize or answer, draw and read pictures, transcribe recordings, and give coding tasks to its Codex models.

Actions

ActionWhat it does
Analyze an imageAsk a question about a picture, such as what a receipt totals, what a screenshot shows or whether a photo matches a description, and get the model's answer.
Ask OpenAIAsk the OpenAI model you choose to write, summarize or answer something, and get its reply.
Cancel a background responseStops a Write code task that is still running in the background, by its response ID.
Check for harmful contentCheck whether text, such as a comment or a form answer, may be harmful: hateful, harassing, violent, sexual or about self-harm.
Create embeddingsTurn texts into vectors for semantic search, finding similar items or grouping them, ready to store in a vector database.
Generate an imageDraw a picture from a description with OpenAI's GPT Image models, or change pictures you give it, such as putting a product photo on a new background.
Get a stored responseGet a response OpenAI kept from an earlier Write code step, by its ID, with its status and its answer.
Transcribe audioWrite down what a recording says, such as a voicemail, a meeting or an interview, with OpenAI's transcription model.
Write codeGives a coding task, such as writing, fixing or explaining code, to one of OpenAI's Codex coding models and returns its answer.

Analyze an image

Ask a question about a picture, such as what a receipt totals, what a screenshot shows or whether a photo matches a description, and get the model's answer.

Inputs

PictureimagetextRequired
The picture: upload it, pick a file from an earlier step, or paste a public web address. PNG, JPEG, WebP or GIF, up to 20 MB.
QuestionquestiontextRequired
What you want to know about the picture.
Modelmodeltext
Which OpenAI model reads the picture. Defaults to gpt-6.1-sol.One of: gpt-6-astra (GPT-6 Astra (most capable)), gpt-6.1-sol (GPT-6.1 Sol (near-Astra quality, lower cost)), gpt-6-luna (GPT-6 Luna (fastest, lowest cost)), gpt-5.5, gpt-5.4, gpt-5.4-mini (GPT-5.4 mini), gpt-5.4-nano (GPT-5.4 nano). Default: gpt-6.1-sol.

Outputs

modeltext
The model that read it.
response_texttext
The model's answer about the picture.
Example output
{
  "model": "gpt-6.1-sol",
  "response_text": "The receipt is from Harbor Hardware and totals $48.20."
}

Ask OpenAI

Ask the OpenAI model you choose to write, summarize or answer something, and get its reply.

Inputs

PromptprompttextRequired
The question or instructions to send to the model.
Modelmodeltext
Which OpenAI model to use. Defaults to gpt-6.1-sol.One of: gpt-6-astra (GPT-6 Astra (most capable)), gpt-6.1-sol (GPT-6.1 Sol (near-Astra quality, lower cost)), gpt-6-luna (GPT-6 Luna (fastest, lowest cost)), gpt-5.5, gpt-5.4, gpt-5.4-mini (GPT-5.4 mini), gpt-5.4-nano (GPT-5.4 nano). Default: gpt-6.1-sol.

Outputs

response_texttext
OpenAI response text.
statustext
Action execution status.
Example output
{
  "response_text": "Based on your question about quantum computing, here are the key principles...",
  "status": "success"
}

Cancel a background response

Stops a Write code task that is still running in the background, by its response ID. Only a task started with Run in the background turned on can be cancelled, and only before it finishes.

Inputs

Response IDresponse_idtextRequired
The ID of the background response to cancel.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "access_programs": {
      "cyber": "standard"
    },
    "background": false,
    "completed_at": 1.0,
    "conversation": {
      "id": "example"
    },
    "created_at": 1.0,
    "error": {
      "code": "server_error",
      "message": "example",
      "misalignment": {
        "detailed_explanation": "example",
        "error_type": "example",
        "review_target": "example",
        "steer": {
          "message": "example"
        }
      },
      "param": "example",
      "type": "example"
    },
    "id": "example",
    "incomplete_details": {
      "reason": "max_output_tokens"
    },
    "instructions": "example",
    "max_output_tokens": 1,
    "max_tool_calls": 1,
    "metadata": {},
    "model": "example",
    "moderation": {
      "input": {
        "categories": {},
        "category_applied_input_types": {},
        "category_scores": {},
        "flagged": false,
        "model": "example",
        "type": "moderation_result"
      },
      "output": {
        "categories": {},
        "category_applied_input_types": {},
        "category_scores": {},
        "flagged": false,
        "model": "example",
        "type": "moderation_result"
      }
    },
    "object": "response",
    "output": [],
    "output_text": "example",
    "parallel_tool_calls": false,
    "previous_response_id": "example",
    "prompt": {
      "id": "example",
      "variables": {},
      "version": "example"
    },
    "prompt_cache_diagnostics": {
      "cache_missed_tokens": 1,
      "comparison_reusable_tokens": 1,
      "reason": "model_changed",
      "type": "cache_miss"
    },
    "prompt_cache_key": "example",
    "prompt_cache_options": {
      "comparison_response_id": "example",
      "mode": "implicit",
      "ttl": "30m"
    },
    "prompt_cache_retention": "in_memory",
    "reasoning": {
      "context": "auto",
      "effort": "none",
      "generate_summary": "auto",
      "mode": "example",
      "summary": "auto"
    },
    "safety_identifier": "example",
    "service_tier": "auto",
    "status": "completed",
    "temperature": 1.0,
    "text": {
      "format": {
        "type": "text"
      },
      "verbosity": "low"
    },
    "tool_choice": "none",
    "tools": [],
    "top_logprobs": 1,
    "top_p": 1.0,
    "truncation": "auto",
    "usage": {
      "input_tokens": 1,
      "input_tokens_details": {
        "cache_write_tokens": 1,
        "cached_tokens": 1
      },
      "output_tokens": 1,
      "output_tokens_details": {
        "reasoning_tokens": 1
      },
      "total_tokens": 1
    },
    "user": "example"
  }
}

Check for harmful content

Check whether text, such as a comment or a form answer, may be harmful: hateful, harassing, violent, sexual or about self-harm. Free with an OpenAI API key.

Inputs

TexttexttextRequired
The text to check.

Outputs

categoriesobject
Each kind of harm OpenAI checks for, true where found.
category_scoresobject
How confident OpenAI is for each kind of harm, from 0 to 1.
flaggedtrue/false
Whether the text may be harmful in any way.
flagged_categorieslist
The kinds of harm found, such as harassment or violence; empty when nothing was.
modeltext
The model that checked it.
Example output
{
  "categories": {
    "harassment": true,
    "hate": false,
    "violence": false
  },
  "category_scores": {
    "harassment": 0.91,
    "hate": 0.02,
    "violence": 0.01
  },
  "flagged": true,
  "flagged_categories": [
    "harassment"
  ],
  "model": "omni-moderation-latest"
}

Create embeddings

Turn texts into vectors for semantic search, finding similar items or grouping them, ready to store in a vector database.

Inputs

TextstextslistRequired
The texts to embed, one per entry, up to 2,048. Each comes back as one vector, in the same order.
Modelmodeltext
Which embedding model to use. Defaults to Text Embedding 3 small. Vectors from different models can't be compared with each other.One of: text-embedding-3-small (Text Embedding 3 small (lower cost)), text-embedding-3-large (Text Embedding 3 large (most accurate)). Default: text-embedding-3-small.
Dimensionsdimensionsnumber
How many numbers each vector has, for a vector database that expects a set size. Leave blank for the model's full size (1,536 for small, 3,072 for large).

Outputs

countnumber
How many vectors there are.
dimensionsnumber
How many numbers each vector has.
embeddinglist
The first text's vector.
embeddingslist
One vector per text, in the same order.
modeltext
The embedding model used.
Example output
{
  "count": 2,
  "dimensions": 3,
  "embedding": [
    0.012,
    -0.043,
    0.031
  ],
  "embeddings": [
    [
      0.012,
      -0.043,
      0.031
    ],
    [
      0.018,
      -0.039,
      0.027
    ]
  ],
  "model": "text-embedding-3-small"
}

Generate an image

Draw a picture from a description with OpenAI's GPT Image models, or change pictures you give it, such as putting a product photo on a new background. The picture is saved as a file for later steps.

Inputs

DescriptionprompttextRequired
What to draw: the subject, the setting, the style and the mood. With reference pictures, say what to change, such as 'Put this product on a beach at sunset'.
Modelmodeltext
Which GPT Image model draws it. Defaults to GPT Image 2.5 Flare. You can also type a model's ID.One of: gpt-image-2.5-flare (GPT Image 2.5 Flare), gpt-image-2.5-sunburst (GPT Image 2.5 Sunburst), gpt-image-2 (GPT Image 2), gpt-image-1-mini (GPT Image 1 mini (lowest cost)). Default: gpt-image-2.5-flare.
Sizesizetext
The picture's shape and size. Leave blank to let the model choose.One of: auto (Let the model choose), 1024x1024 (Square (1024 × 1024)), 1536x1024 (Landscape (1536 × 1024)), 1024x1536 (Portrait (1024 × 1536)).
Qualityqualitytext
Higher quality takes longer and costs more. Leave blank to let the model choose.One of: auto (Let the model choose), low (Low (fastest, lowest cost)), medium, high.
Backgroundbackgroundtext
Transparent suits a logo or a sticker. Leave blank to let the model choose.One of: auto (Let the model choose), opaque (Solid), transparent.
Reference picturesreference_imageslist
Pictures to change or work from, such as a product photo or a logo: upload them, pick files from an earlier step, or paste public web addresses. PNG, JPEG or WebP, up to 16.

Outputs

content_typetext
The file's type, such as image/png.
document_reftext
The saved file, for steps that take a file.
documentslist
Every picture saved, in order.
filenametext
The file's name.
image_countnumber
How many pictures OpenAI drew.
modeltext
The model that drew it.
qualitytext
The quality it was drawn at.
sizetext
The picture's size, such as 1024x1024.
size_bytesnumber
The file's size in bytes.
urltext
A link that opens the saved file.
Example output
{
  "content_type": "image/png",
  "document_ref": "doc_0123456789abcdef0123456789abcdef",
  "documents": [
    {
      "content_type": "image/png",
      "document_ref": "doc_0123456789abcdef0123456789abcdef",
      "filename": "openai-image-1.png",
      "size_bytes": 1482211,
      "url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef"
    }
  ],
  "filename": "openai-image-1.png",
  "image_count": 1,
  "model": "gpt-image-2.5-flare",
  "quality": "medium",
  "size": "1024x1024",
  "size_bytes": 1482211,
  "url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef"
}

Get a stored response

Get a response OpenAI kept from an earlier Write code step, by its ID, with its status and its answer. Use it to pick up the answer to a task run in the background.

Inputs

Response IDresponse_idtextRequired
The ID of the stored response to get, such as the ID a Write code step returned.
Also includeincludelist
Extra details to add to the answer, such as web search results or the model's encrypted reasoning.One or more of: file_search_call.results (File search call.results), web_search_call.results (Web search call.results), web_search_call.action.sources (Web search call.action.sources), message.input_image.image_url (Message.input image.image url), computer_call_output.output.image_url (Computer call output.output.image url), code_interpreter_call.outputs (Code interpreter call.outputs), reasoning.encrypted_content (Reasoning.encrypted content), message.output_text.logprobs (Message.output text.logprobs).

Outputs

dataobject
Response.
Example output
{
  "data": {
    "access_programs": {
      "cyber": "standard"
    },
    "background": false,
    "completed_at": 1.0,
    "conversation": {
      "id": "example"
    },
    "created_at": 1.0,
    "error": {
      "code": "server_error",
      "message": "example",
      "misalignment": {
        "detailed_explanation": "example",
        "error_type": "example",
        "review_target": "example",
        "steer": {
          "message": "example"
        }
      },
      "param": "example",
      "type": "example"
    },
    "id": "example",
    "incomplete_details": {
      "reason": "max_output_tokens"
    },
    "instructions": "example",
    "max_output_tokens": 1,
    "max_tool_calls": 1,
    "metadata": {},
    "model": "example",
    "moderation": {
      "input": {
        "categories": {},
        "category_applied_input_types": {},
        "category_scores": {},
        "flagged": false,
        "model": "example",
        "type": "moderation_result"
      },
      "output": {
        "categories": {},
        "category_applied_input_types": {},
        "category_scores": {},
        "flagged": false,
        "model": "example",
        "type": "moderation_result"
      }
    },
    "object": "response",
    "output": [],
    "output_text": "example",
    "parallel_tool_calls": false,
    "previous_response_id": "example",
    "prompt": {
      "id": "example",
      "variables": {},
      "version": "example"
    },
    "prompt_cache_diagnostics": {
      "cache_missed_tokens": 1,
      "comparison_reusable_tokens": 1,
      "reason": "model_changed",
      "type": "cache_miss"
    },
    "prompt_cache_key": "example",
    "prompt_cache_options": {
      "comparison_response_id": "example",
      "mode": "implicit",
      "ttl": "30m"
    },
    "prompt_cache_retention": "in_memory",
    "reasoning": {
      "context": "auto",
      "effort": "none",
      "generate_summary": "auto",
      "mode": "example",
      "summary": "auto"
    },
    "safety_identifier": "example",
    "service_tier": "auto",
    "status": "completed",
    "temperature": 1.0,
    "text": {
      "format": {
        "type": "text"
      },
      "verbosity": "low"
    },
    "tool_choice": "none",
    "tools": [],
    "top_logprobs": 1,
    "top_p": 1.0,
    "truncation": "auto",
    "usage": {
      "input_tokens": 1,
      "input_tokens_details": {
        "cache_write_tokens": 1,
        "cached_tokens": 1
      },
      "output_tokens": 1,
      "output_tokens_details": {
        "reasoning_tokens": 1
      },
      "total_tokens": 1
    },
    "user": "example"
  }
}

Transcribe audio

Write down what a recording says, such as a voicemail, a meeting or an interview, with OpenAI's transcription model.

Inputs

RecordingaudiotextRequired
The recording: upload it, pick a file from an earlier step, or paste a public web address. MP3, MP4, M4A, WAV, WebM, OGG or FLAC, up to 25 MB.
Languagelanguagetext
The language spoken, as a two-letter code such as en or es, which makes the transcript more accurate. Leave blank to detect it.
Words to listen forkeywordstext
Names, product names or terms the recording uses, one per line, so they're spelled right.

Outputs

languageslist
The languages heard, as codes such as en.
modeltext
The model that transcribed it.
texttext
What the recording says.
Example output
{
  "languages": [
    "en"
  ],
  "model": "gpt-transcribe",
  "text": "Hi, it's Dana from Coastal Marine. Please call me back about the order."
}

Write code

Gives a coding task, such as writing, fixing or explaining code, to one of OpenAI's Codex coding models and returns its answer. Include the code it should work on in the task. For a long task, turn on Run in the background, then pick up the answer with Get a stored response or the When a response's status changes trigger.

Inputs

ModelmodeltextRequired
Which Codex coding model does the task.
Coding taskprompttextRequired
What the model should do. Include the code it should work on.
Instructionsinstructionstext
Standing guidance the model follows for this task, such as the language and style to use.
Carry on from responseprevious_response_idtext
The ID of an earlier stored response, so the model carries on from that conversation.
Reasoning effortreasoning_efforttext
How long the model thinks before it answers. Higher is slower and costs more.One of: low, medium, high.
Maximum answer length (tokens)max_output_tokensnumber
The most the model may write, in tokens. A token is about four characters.At least 1.
Keep the responsestoretrue/false
Keep the response on OpenAI so later steps can get, list or delete it by its ID. Running in the background needs this on.Default: true.
Run in the backgroundbackgroundtrue/false
Start the task and carry on without waiting for the answer. Get it later with Get a stored response.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "access_programs": {
      "cyber": "standard"
    },
    "background": false,
    "completed_at": 1.0,
    "conversation": {
      "id": "example"
    },
    "created_at": 1.0,
    "error": {
      "code": "server_error",
      "message": "example",
      "misalignment": {
        "detailed_explanation": "example",
        "error_type": "example",
        "review_target": "example",
        "steer": {
          "message": "example"
        }
      },
      "param": "example",
      "type": "example"
    },
    "id": "example",
    "incomplete_details": {
      "reason": "max_output_tokens"
    },
    "instructions": "example",
    "max_output_tokens": 1,
    "max_tool_calls": 1,
    "metadata": {},
    "model": "example",
    "moderation": {
      "input": {
        "categories": {},
        "category_applied_input_types": {},
        "category_scores": {},
        "flagged": false,
        "model": "example",
        "type": "moderation_result"
      },
      "output": {
        "categories": {},
        "category_applied_input_types": {},
        "category_scores": {},
        "flagged": false,
        "model": "example",
        "type": "moderation_result"
      }
    },
    "object": "response",
    "output": [],
    "output_text": "example",
    "parallel_tool_calls": false,
    "previous_response_id": "example",
    "prompt": {
      "id": "example",
      "variables": {},
      "version": "example"
    },
    "prompt_cache_diagnostics": {
      "cache_missed_tokens": 1,
      "comparison_reusable_tokens": 1,
      "reason": "model_changed",
      "type": "cache_miss"
    },
    "prompt_cache_key": "example",
    "prompt_cache_options": {
      "comparison_response_id": "example",
      "mode": "implicit",
      "ttl": "30m"
    },
    "prompt_cache_retention": "in_memory",
    "reasoning": {
      "context": "auto",
      "effort": "none",
      "generate_summary": "auto",
      "mode": "example",
      "summary": "auto"
    },
    "safety_identifier": "example",
    "service_tier": "auto",
    "status": "completed",
    "temperature": 1.0,
    "text": {
      "format": {
        "type": "text"
      },
      "verbosity": "low"
    },
    "tool_choice": "none",
    "tools": [],
    "top_logprobs": 1,
    "top_p": 1.0,
    "truncation": "auto",
    "usage": {
      "input_tokens": 1,
      "input_tokens_details": {
        "cache_write_tokens": 1,
        "cached_tokens": 1
      },
      "output_tokens": 1,
      "output_tokens_details": {
        "reasoning_tokens": 1
      },
      "total_tokens": 1
    },
    "user": "example"
  }
}

On this page