POST
javascript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 const axios = require('axios'); const api_key = "YOUR API KEY"; const url = "https://api.segmind.com/workflows/66bb6c21e3c7da0722d7312a-v1"; const data = { reference_image: "publicly accessible image link" }; axios.post(url, data, { headers: { 'x-api-key': api_key, 'Content-Type': 'application/json' } }).then((response) => { console.log(response.data); });
Response
application/json
1 2 3 4 5 { "poll_url": "<base_url>/requests/<some_request_id>", "request_id": "some_request_id", "status": "QUEUED" }

You can poll the above link to get the status and output of your request.

Response
application/json
1 2 3 { "image_output": "image in URL Format" }

Attributes


reference_imageimage*

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.

AI Copyright Free Image Generator with Flux.1

The AI Copyright Free Image Generator with Flux.1 is an essential tool for developers and designers seeking to generate visually appealing, copyright-free images. By understanding the flow and utilizing the robust models built into the tool, you can elevate your creative projects effortlessly.

As a developer or professional designer, creating high-quality, copyright-free images is paramount. Leveraging the cutting-edge capabilities of AI and Flux.1, you can now generate unique images tailored to your needs effortlessly. This workflow will guide you through the process and explain the underlying models and flow involved.

Flow and Models

  • Image Input: The process starts with the Image Input node. Here, you can click or drag and drop an image file to provide the base content for the generator. This image acts as a reference point for further transformations and enhancements.

  • LLaVA: Next, the uploaded image is passed through the LLAVA 1.5.78 model. This advanced model is tasked with analyzing the input image and generating a descriptive text prompt. Key functionalities in this step include: For instance, if the input image is of a person, the prompt could be: "Create an image of a young man with a soccer ball."

  • Flux.1 Img2Img: The image and the generated prompt are then fed into the Flux.1 Image to Image model.

  • Output: The final stage is the Output node, where the newly created image is displayed. The output image is high-quality, meets all specified requirements, and is free from copyright restrictions—ready for immediate use in any project.