FlyMyAI

Generate images or videos with FlyMyAI models

Overview

The FlyMyAI node enables generating images or videos using AI models hosted on the FlyMyAI platform. It sends prompts and optional parameters to a specified model endpoint and receives generated media outputs. This node is useful for creative automation workflows such as generating artwork, video clips, or other media content based on textual descriptions or reference images.

Typical use cases include:

  • Creating AI-generated images or videos from text prompts.
  • Enhancing creative projects by automating media generation.
  • Using reference images to guide generation.
  • Experimenting with advanced generation parameters like resolution, steps, guidance scale, and seed.

Properties

Name Meaning
API Base URL The base URL of the FlyMyAI API endpoint (default: https://api.flymy.ai).
Owner / Namespace The owner or namespace part of the API path, used in /api/v1/{owner}/{model}/predict. Defaults to "flymyai".
Model The AI model to use for generation. Can be a simple model name like "SDXLTurbo" or a full owner/model string.
Expected Output The expected output type from the model: Auto (determined from API), Image, or Video.
Prompt The main text prompt describing what to generate.
Negative Prompt Text prompt specifying undesired elements to avoid in generation.
Advanced Params Boolean flag to enable advanced generation parameters.
Width Width of the generated image/video (shown if advanced params enabled).
Height Height of the generated image/video (shown if advanced params enabled).
Steps Number of inference steps for generation (shown if advanced params enabled).
Guidance Scale Guidance scale parameter influencing generation creativity (shown if advanced params enabled).
Seed Random seed for reproducible results (shown if advanced params enabled).
Reference Image Source Source of a reference image to guide generation: None, From Previous Node (binary data), From URL, or From Data URL/Base64.
Binary Property Name Name of the binary property containing the reference image when source is "From Previous Node".
Reference Image URL URL of the reference image when source is "From URL".
Reference Image (Data URL or Base64) Reference image encoded as a data URL or Base64 string when source is "From Data URL or Base64".
Reference Image Mime (optional) MIME type of the reference image (optional, used with URL or Data URL sources).
Reference Image Filename (optional) Filename for the reference image (optional, used with URL or Data URL sources).
Output Binary Property Name of the binary property where the generated media will be stored (default: "data").
Filename Prefix Prefix added to the generated file names.
Include Metadata in JSON Whether to include metadata about the request and response in the JSON output (default: true).
Prefer Download From URL Whether to download generated media from URLs provided by the API instead of embedding base64 data (default: true).
Extra Payload Fields Additional arbitrary form fields sent verbatim in the API request payload.
Include Request Echo (debug) Whether to include the raw request echo for debugging purposes in the output JSON (default: true).

Output

The node outputs an array of items, each containing:

  • json:
    • Metadata about the request and response, including optionally the raw request echo, normalized response data, and any notes.
    • If enabled, includes details such as the API URL used, request form keys, and response data.
  • binary:
    • Contains one or more generated media files (images or videos) under the configured binary property name (default "data").
    • Each binary entry includes the file data buffer, filename, and MIME type.

If multiple outputs are returned by the API, each is output as a separate item with its own binary data.

Dependencies

  • Requires an API key credential for authenticating requests to the FlyMyAI API.
  • Uses HTTP POST requests to the FlyMyAI /api/v1/{owner}/{model}/predict endpoint.
  • Supports fetching reference images from previous nodes (binary), URLs, or embedded data URLs/Base64.
  • Downloads generated media from URLs if preferred and supported.
  • Timeout for API requests is set to 120 seconds.

Troubleshooting

  • Invalid Reference Image:
    If the reference image data URL or Base64 string is invalid, the node throws an error indicating the reference image is not valid. Ensure the input is correctly formatted.

  • API Request Failures:
    Errors during the API call return messages like FlyMyAI request failed (status): <error message>. Check your API key validity, network connectivity, and that the API base URL and model are correct.

  • No Outputs Found:
    If the API response contains no generated outputs, the node returns an item with a note stating "No outputs found." Verify the prompt and model settings.

  • Binary Property Missing:
    When using a reference image from a previous node, ensure the specified binary property exists and contains valid binary data.

  • Timeouts:
    Large or complex generation requests may time out after 120 seconds. Consider reducing complexity or increasing timeout if possible.

Links and References

Discussion