Generative
Last updated
Last updated
Currently, we support the following AI models:
Model
gpt-4
More capable than gpt-3.5 and able to perform more complex tasks and return more precise answers.
8,192 tokens
Up to Sep 2021
gpt-3.5 turbo
Can perform most tasks and return well-structured answers.
4,096 tokens
Up to Sep 2021
DALL·E
Create realistic images and art from a description.
-
-
Check Open AI doc for more details of the gpt models.
Role
system
It sets up the context and behavior of the assistant.
user
It's used to give instructions to the assistant. It is typically generated by the end user. But you as a developer can also provide some potential user prompts beforehand.
assistant
We provide the assistant with some information in advance so that it gives us the response we expect from the API.
Temperature
Lower values for temperature result in more consistent outputs, while higher values generate more diverse and creative results. Select a temperature value based on the desired trade-off between coherence and creativity for your specific application.
Max Token
The character count of your request. Try to set the max_tokens
value as close to your expected response size as possible.
Prompt
A prompt is an instruction or discussion topic a user provides for the GPT AI model to respond to.
The prompt can be a question, statement, or any other stimulus intended to spark creativity, reflection, or engagement.
You can use the prompt to generate ideas, share thoughts, or start a conversation.
Create realistic images and art from a description.
n: number of images you want to generate. You can request 1-10 images at a time.
size: image size. Smaller sizes are faster to generate.
prompt: a short description about the image you want to generate. The more detailed the description, the more likely you are to get the result that you want.
Swap faces between arbitrary faces for images. For example, a user can input his selfie start-0
and swap the face on the figure image res-ld-0.
Figure Image data: A figure image for face swapping.
Face Image data: A face image that you want to swap with the figure image.