Integrations

Dify → AI24X

Use a custom HTTP / API tool so Dify apps spend AI24X credits.

Tool / HTTP settings

  • URL: https://api.ai24x.com/v1/chat/run
  • Auth header: X-API-Key: YOUR_KEY
  • Body JSON: prompt, model (flash/pro), max_tokens
{ "prompt": "{{user_input}}", "model": "flash", "max_tokens": 500 }

UI labels differ by Dify version—map the response text into your prompt/answer node. Do not paste secrets into public apps.

n8n · HTTP / Python · Help