flux-pro/v1.1-ultra
Model Overview
Model
Generated image properties
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": "A T-Rex relaxing on a beach, lying on a sun lounger and wearing sunglasses.",
"model": "flux-pro/v1.1-ultra",
}
)
response.raise_for_status()
data = response.json()
print("Generation:", data)
if __name__ == "__main__":
main()
Generation: {'images': [{'url': 'https://cdn.apilaplas.com/squirrel/files/panda/Xw0w4dVpJk88_d8CBZQas_c2d37af49746421fa848a95df405288a.jpg', 'width': 2752, 'height': 1536, 'content_type': 'image/jpeg'}], 'timings': {}, 'seed': 2704861852, 'has_nsfw_concepts': [False], 'prompt': 'A T-Rex relaxing on a beach, lying on a sun lounger and wearing sunglasses.'}