Dragalia Lost Dialogue Generator API
The Dragalia Lost Dialogue Generator API generates an image of the dialogue screen from the game Dragalia Lost
Generating Image
Generate a dialogue screen image
Request
GET /{type}/{name}/{text}
GET /{name}/{text}
| Parameter | Type | Description | Example Value |
|---|---|---|---|
| type | string |
The dialogue type to generate. Default: dialogue Valid values are
|
dialogue |
| name | string |
Name of the speaker of the dialogue. If none of id, pt, and noportrait query parameter are supplied, the
API will attempt to use the find and use the portrait that matches this parameter the closest.
|
Fleur |
| text | string |
The text content of the dialogue. Certain characters (such as spaces or question marks) may have to be replaced by escape
sequences representing the UTF-8 encoding of the character. |
This%20is%20an%20example%20response |
Query
| Query | Type | Description | Example |
|---|---|---|---|
| nobg | flag | If provided, the background image will be empty. | ?nobg |
| bg | string | URL of the background image. If this parameter is not supplied, the background image will be the interior of the halidom by default. Certain characters (such as colons and slashes) may have to be replaced by escape sequences representing the UTF-8 encoding of the character | ?bg=https%3A%2F%2Fdragalialost.wiki%2Fimages%2Fc%2Fc3%2FMainstory_001001_00.png |
| bgx | float | The x-offset of the background. Default: 0 | ?bgx=10 |
| bgy | float | The y-offset of the background. Default: 0 | ?bgy=10 |
| bgr | float | The rotation of the background in degrees. Default: 0 | ?bgr=180 |
| bgs | float | The scale of the background. Default: 1 | ?bgs=1.5 |
| bgo | float | The opacity of the background. Default: 1 | ?bgo=0.75 |
| bgflipx | flag | If provided, the background image will be flipped on the x-axis. | ?bgflipx |
| noportrait | flag | If provided, the portrait image will be empty. | ?noportrait |
| id | string | The character ID of the portrait image or the name of the character (the API will attempt to use the find and use the portrait that matches this parameter the closest). If this parameter is not supplied, the portrait image will be the closest matching portrait of the speaker's name by default. | ?id=110319_01 ?id=fleur ?id=flerr |
| pt | string |
URL of the portrait image, this parameter will override id. If this parameter is not supplied, the portrait
image will be the closest matching portrait of the speaker's name by default.
Certain characters (such as colons and slashes) may have to be replaced by escape
sequences representing the UTF-8 encoding of the character
|
?pt=https%3A%2F%2Fdragalialost.wiki%2Fimages%2Fc%2Fc3%2FMainstory_001001_00.png |
| x | float | The x-offset of the portrait. Default: 0 | ?x=10 |
| y | float | The y-offset of the portrait. Default: 0 | ?y=10 |
| r | float | The rotation of the portrait in degrees. Default: 0 | ?r=180 |
| s | float | The scale of the portrait. Default: 1 | ?s=1.5 |
| o | float | The opacity of the portrait. Default: 1 | ?o=0.75 |
| flipx | flag | If provided, the portrait image will be flipped on the x-axis. | ?flipx |
| f | string |
The font that the text for the dialogue should be drawn in. Default: 'en' Valid values are
|
?f=ja |
| e | string |
The emotion that should be drawn in the emotion bubble. If this parameter is not provided, or is set to 'none',
the emotion bubble will not be drawn
Default: 'none' Valid values are
|
?e=anger |
| es | string |
The side the emotion bubble should be on. 'l' for left and 'r' for right. Default: 'l' Valid values are
|
?es=r |
| ex | float | The y-offset of the emotion bubble. Default: 0 | ?ex=10 |
| ey | float | The y-offset of the emotion bubble. Default: 0 | ?ey=10 |
Responses
Dialogue screen image as a .png file
Body image/png
| Example Request | Example Response |
|---|---|
http://api.dldialogue.xyz/dialogue/Fleur/This%20is%20an%20example%20response |
|
http://api.dldialogue.xyz/intro/Fleur/Budding%20Artist?nobg |
|
http://api.dldialogue.xyz/Fleur/spooooky?r=180&o=0.75 |
|
http://api.dldialogue.xyz/%3F%3F%3F/Excuse%20you%2C%20I'm%20not%20LOST!%0AI'm%20an%20artist.?e=exclamation&id=fleur |