flux-pro
Model Overview
Model
Properties of Generated Images
Setup your API Key
Submit a request
API Schema
Quick Example

Last updated

Last updated
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()
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'}