flux-pro

This documentation is valid for the following list of our models:

  • flux-pro

Model Overview

This is first version of Flux Pro, but it generates images of unmatched quality, outperforming popular models like Midjourney v6.0, DALL·E 3 (HD), and SD3-Ultra.

You can also view a detailed comparison of this model on our main website.

Model
Properties of Generated Images

flux-pro

Format: JPEG/PNG Min size: 256x256 Max size: 1440x1440 Default size: 1024x768 For both height and width, the value must be a multiple of 32.

Setup your API Key

If you don’t have an API key for the Apilaplas API yet, feel free to use our Quickstart guide.

Submit a request

API Schema

Quick Example

Let's generate an image of the specified size using a simple prompt.

import requests


def main():
    response = requests.post(
        "https://api.apilaplas.com/v1/images/generations",
        headers={
            # Insert your LAPLAS API Key instead of <YOUR_LAPLASAPI_KEY>:
            "Authorization": "Bearer <YOUR_LAPLASAPI_KEY>",
            "Content-Type": "application/json",
        },
        json={
            "prompt": "Rabbit singing",
            "model": "flux-pro",
            'image_size': {
                "width": 1024,
                "height": 320
            }
        }
    )

    response.raise_for_status()
    data = response.json()

    print("Generation:", data)


if __name__ == "__main__":
    main()
Response
Generation: {'images': [{'url': '
https://cdn.apilaplas.com/squirrel/files/penguin/xbv7ajizigDvmBpUEd4Gl_48c13ea3ffda4164b124ac5b84cdf9d3.jpg
', 'width': 1024, 'height': 320, 'content_type': 'image/jpeg'}], 'timings': {}, 'seed': 782392770, 'has_nsfw_concepts': [False], 'prompt': 'Rabbit singing'}

We obtained the following nice 1024x320 image by running this code example:

Last updated