Custom n8n node for integrating with the AI/ML API platform (AIMLAPI) to interact with LLMs and multimodal AI models such as chat completion endpoints.
Description
n8n-nodes-aimlapi
This is an n8n community node for n8n is a fair-code licensed workflow automation platform.
source=n8n&utmmedium=github&utm_campaign=integration”>https://aimlapi.com/
2. Go to your source=n8n&utmmedium=github&utm_campaign=integration”>provider documentation for detailed API specs.
Node Parameters
Operation β Select the modality (Chat Completion, Image Generation, Audio Generation, Video Generation, Speech Synthesis, Speech Transcription, or Embedding Generation).
Model β Pick a model from the filtered list (dependent on operation) or provide an ID via expression.
#### Chat Completion
Use Message List β Switch between a single prompt and a structured list of chat messages.
Prompt/Messages β Provide either one prompt or multiple messages. Each structured message selects a Role (assistant, system, or user) from the dropdown, or choose Customβ¦ to enter another role such as tool, plus the text Content. When using the tool role, fill in the required Tool Call ID with the identifier returned alongside the assistant tool invocation so the API can pair the response correctly.
Extract From Response β Decide what to return (Text Only, Assistant Messages, Choices Array, or Full Raw JSON).
Options β Fine-tune completions with Temperature, Top P, Max Tokens, Presence Penalty, Frequency Penalty, and Response Format.
#### Image Generation
Prompt β Describe the image you want the model to create.
Extract From Response β Return the first/all URLs, first/all base64 images, or the raw payload.
Image Options β Configure Background, Image Count, Negative Prompt, Quality, Response Format, Size, and Style.
#### Audio Generation
Prompt β Describe the audio clip you want to generate.
Extract From Response β Return audio URLs, base64 blobs, or the raw payload.
Audio Options β Adjust Audio Format, Duration, Mode, Negative Prompt, Prompt Strength, Seed, Reference Audio URL, Instrument, and CFG Scale.
#### Video Generation
Prompt β Describe the scene for the generated video.
Extract From Response β Return the first/all video URLs or the raw payload.
Video Options β Control Aspect Ratio/Ratio, Duration, Kling Types & Image Lists, Google Veo Tail Images & Prompt Enhancement, Alibaba Resolution/Watermark/Prompt Expansion, MiniMax Prompt Optimizer & First Frame, Runway Last Image, plus legacy toggles like Negative Prompt, Prompt Strength, Reference Media, Background Audio, CFG Scale, and Seed.
#### Speech Synthesis
Text β Content that should be spoken aloud.
Extract From Response β Return an audio URL, base64 payload, or the raw response.
Speech Options β Configure Voice, Audio Format, Sample Rate, Speaking Rate, and Style.
#### Speech Transcription
Binary Property β Name of the binary property that contains the audio file.
Extract From Response β Return transcript text, segment breakdowns, or the raw payload.
Transcription Options β Provide Language, Prompt, Response Format, and Temperature.
#### Embedding Generation
Input Text β Text that should be converted into an embedding vector.
Extract From Response β Return the first vector, all vectors, or the raw payload.
Embedding Options β Configure Encoding Format and User Identifier metadata.
—
Usage Example
1. Add a Manual Trigger
2. Add the AI/ML API node
3. Configure credentials
4. Set a model (e.g. gpt-3.5-turbo)
5. Enter prompt: What is the capital of France?
6. Select Extract: Text Only
7. Execute β youβll get Paris
—
Troubleshooting
If the node doesn’t show up, try restarting your instance
If the icon or name doesn’t render, make sure you ran npm run build && gulp build:icons
To debug model list: ensure credentials and /models endpoint return valid JSON
—
Support
Please open an issue or pull request in the GitHub repository if you encounter problems.