Skip to main content
Dify can connect to APIAny.AI through OpenAI-compatible settings. After setup, you can use chat, reasoning, translation, and multimodal models from the same client.

Prerequisites

  • Dify is installed.
  • You have created an API key in the APIAny.AI dashboard.
  • You have selected a model ID, such as gpt-5.4-mini or gpt-4o-mini.

Configuration values

FieldValue
Model typeOpenAI-API-compatible
API endpointhttps://apiany.ai/v1
API KeyYour APIAny.AI API key
Modelgpt-5.4-mini

Setup

  1. Open model settings in your Dify workspace.
  2. Add an OpenAI API-compatible model.
  3. Enter the API endpoint, API key, and model ID.
  4. Create an app, select the model, and run a preview.
Model IDBest for
gpt-5.5Best first choice for complex reasoning, coding, and production workflows.
gpt-5.4Strong general-purpose model for advanced chat and agent tasks.
gpt-5.4-miniBalanced speed, quality, and cost for everyday usage.
gpt-4o-miniFast and economical choice for simple chat, translation, and lightweight tasks.
claude-sonnet-4-6Claude-compatible model ID for long-form writing and coding workflows.
gemini-3.5-flashGemini-compatible model ID for fast multimodal usage.

Walkthrough screenshots

The screenshots below show the key configuration screens in Dify. API names and endpoints have been adjusted for APIAny.AI.

Step 1

Dify setup screenshot 1

Step 2

Dify setup screenshot 2

Step 3

Dify setup screenshot 3

Step 4

Dify setup screenshot 4

Step 5

Dify setup screenshot 5

Step 6

Dify setup screenshot 6

Step 7

Dify setup screenshot 7

Step 8

Dify setup screenshot 8

Step 9

Dify setup screenshot 9

Step 10

Dify setup screenshot 10

Step 11

Dify setup screenshot 11

Step 12

Dify setup screenshot 12

Step 13

Dify setup screenshot 13

Step 14

Dify setup screenshot 14

Troubleshooting

401 or authentication errors

Make sure the API key is copied completely, has no extra spaces, and is enabled in the APIAny.AI dashboard.

The model does not appear in the app

Enter the model ID manually and confirm it is available in the model catalog. Some tools do not fetch model lists automatically.

Which Base URL should I use?

OpenAI-compatible settings usually use https://apiany.ai/v1; Claude-compatible settings usually use https://apiany.ai; tools that ask for a full endpoint use https://apiany.ai/v1/chat/completions.