# flux_dev >

Flux-dev checkpoint

## Overview - **Model ID**: `fluxdev` - **Category**: flux - **Provider**: modelslab - **Status**: model_ready - **Screenshot**: `https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/livewire-tmp/INUhOmK2vRypASxSSePFMDbbUqKXQs-metaMC0yNWU4MGE5ZC03Yjc4LTRmYWQtODI4Zi0xNTI4ZmZjOThlNzMuanBn-.jpg` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v5/controlnet` - **Method**: POST ### Parameters - **`init_image`** (required): - Type: file (image/jpeg,image/png,image/webp) - Example: Please Upload image you want to transform into Ghibli-art - **`prompt`** (required): try to keep same prompt as it works best - Type: textarea - Example: default prompt work best, no recommended to change it - **`base64`** (required): Get response as a base64 string. Pass init_image as base64 strings to get base64 response. - Type: select (options: no, yes) ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v5/controlnet \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "fluxdev", "init_image": "https://assets.modelslab.com/generations/3bbf03d7-cc4a-45e2-b209-440d00306f4a", "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "base64": "no" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v5/controlnet", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "fluxdev", "init_image": "https://assets.modelslab.com/generations/3bbf03d7-cc4a-45e2-b209-440d00306f4a", "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "base64": "no" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v5/controlnet", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "fluxdev", "init_image": "https://assets.modelslab.com/generations/3bbf03d7-cc4a-45e2-b209-440d00306f4a", "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "base64": "no" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/ghibli-art-style/fluxdev) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)