flux-realism
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": "Epic battle of spaceships",
"model": "flux-realism",
'image_size': {
"width": 1472,
"height": 512
}
}
)
response.raise_for_status()
data = response.json()
print("Generation:", data)
if __name__ == "__main__":
main()
Generation: {'images': [{'url': 'https://cdn.apilaplas.com/eagle/files/elephant/nUJYdUrH6sLhgw2K2Z3hR_91336d262dc64dce8644c7c6f5adb11b.jpg', 'width': 1472, 'height': 512, 'content_type': 'image/jpeg'}], 'timings': {'inference': 5.585701048956253}, 'seed': 3110284405, 'has_nsfw_concepts': [False], 'prompt': 'Epic battle of spaceships'}