Generative AI prompt.

This commit is contained in:
Vitor Pamplona 2023-07-03 09:37:37 -04:00
parent e0fc913719
commit 672f8ff2a0

30
104.md Normal file
View File

@ -0,0 +1,30 @@
NIP-104
=======
Generative AI Prompt
--------------------
`draft` `optional` `author:vitorpamplona`
This NIP reserves `kind:1947` for Generated AI media prompts to be produced at the client side. It's expected that each viewer of this event will see a different media.
The prompt MUST be placed in the `.content`
```js
{
"id": "<32-bytes lowercase hex-encoded SHA-256 of the the serialized event data>",
"pubkey": "<32-bytes lowercase hex-encoded public key of the event creator>",
"created_at": "<Unix timestamp in seconds>",
"kind": 1947,
"tags": [], // any relevant tags.
"content": "<Prompt to generate the image/video>"
}
```
Clients MAY choose when to generate the image and MAY add information to the prompt at will.
# Examples
A client can add a given style to the prompt to match their user interface. Others can add the user's language to produce the image with the appropriate translations. Clients can design galleries for the best prompt collections.
Supporting event kinds can accept a quoted `kind:1947` to be generated inside the rendering of that event.